/ walking bear:D / 利用 multiline 屏蔽掉部份 html div

利用 multiline 屏蔽掉部份 html div

2017-03-31 posted in []

例如:

<%- markdown(multiline(function() { /* 
[森ななこ](http://www.uubqp.com/thread-31327-1-1.html)
![森奈奈子](http://www.uubqp.com/data/attachment/forum/201306/22/180018e5apxzxz0up8x8fp.jpg)
*/ })) %>

修改成:

<%- (x=>"./view/_ads.html")(multiline(function() { /* 
    這其中不能再有 template 的 end-tag
*/ })) %>

相較 html 的 comment out,這招不會讓生成的 html result 肥大。 . reply_count: 0 get_replies : 0 .

walking bear:DRSS feed

关于

wkliang

Clarke's Three Laws:

  • When a distinguished but elderly scientist states that something is possible, he is almost certainly right. When he states that something is impossible, he is very probably wrong.
  • The only way of discovering the limits of the possible is to venture a little way past them into the impossible.
  • Any sufficiently advanced technology is indistinguishable from magic.
  • 版权申明

    知识共享许可协议

    Fork me on GitHub

    Powered by

    Disqus, GitHub, Google Custom Search, Gravatar, HighlightJS, jekyll