Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Spring MVC フレームワークでクライアント側の DustJS テンプレートを使用しようとしています。プロジェクトを実行する前にすべての .dust ファイルをコンパイルするにはどうすればよいですか?
ビルド時 (またはアプリの開始前) にすべてのダスト テンプレートをコンパイルし、JS として保存できます。次に、必要なときにそれらをロードし、 を使用して、ロードしdust.loadSourceたらレンダリングできます。
dust.loadSource