1

このようなテンプレートを次のようにコンパイルしdustcます。

$ cat <<EOF | ./node_modules/.bin/dustc -
<p>Hi there!</p>
<p>I'm a {! dust !} template.</p>
EOF

出力:

(function(){dust.register("-",body_0);function body_0(chk,ctx){return chk.write("<p>Hi there!</p><p>I'm a  template.</p>");}return body_0;})();

ただし、行間はありません\n。例:"<p>Hi there!</p>\n<p>I'm a template.</p>"

これを変更する方法はありますか?ありがとうございました

4

2 に答える 2