問題タブ [gulp-nunjucks-render]

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.

0 投票する
0 に答える
250 参照

javascript - Gulp、Nunjucks、Array を使用したテンプレートのレンダリング

次のようなhtmlがあります。

Gulpgulp-nunjucks-render、および arrayを使用してレンダリングしたいと思います['100', '300']

答え

これが答えです - しかし、私が質問を洗練するのを助け、正しいコンポーネントを指摘し、構文を手伝ってくれた人にクレジットを与えたいと思います. - 以下をテストしました):