問題タブ [dustc]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
dust.js - 改行を含むダスト テンプレートをコンパイルする
このようなテンプレートを次のようにコンパイルしdustc
ます。
出力:
ただし、行間はありません\n
。例:"<p>Hi there!</p>\n<p>I'm a template.</p>"
これを変更する方法はありますか?ありがとうございました
dust.js - Dust コンパイル オプションを Gulp Dust タスクに渡す
node アプリケーションの gulp-dust にさまざまな Dustc オプションを渡したいと思います。たとえば、gulp-dust で amd、cwd を設定するにはどうすればよいですか。コンパイル オプションで name と preserveWhiteSpace を渡すことができることは理解しています。しかし、他のオプションはどうですか?
コードスニペット:
dust.js - ダストテンプレートをプリコンパイルする方法
しかし、私はエラーが発生しています
私は inbox.dust ファイルを持っています:
および inbox.js ファイル
まだ私は取得しています
dust.js - Dustjs OR ヘルパー
ダストヘルパーを使用して以下のステートメントを記述する方法は?