問題タブ [heist]
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.
haskell - スプライスを使用して強盗テンプレートをレンダリングするにはどうすればよいですか?
私は使用しようとしていますrenderWithSplices
- http://hackage.haskell.org/package/snap-1.0.0.0/docs/Snap-Snaplet-Heist.html#v:renderWithSplices
型の値を取得する慣用的な方法は何ですかSplices s
(2 番目のパラメーターのrenderWithSplices
)?
haskell - Heist は、テンプレート内の任意の場所への (文字列/JSON) の置換をサポートしていますか?
強盗に関しては、次のようなテンプレートがあります。
???
文字列を別の文字列に置き換える方法はありますか?
次の関数が解決策になるかもしれないと思いますhttps://hackage.haskell.org/package/heist-1.0.1.0/docs/Heist-Splices-Json.html#v:bindJsonしかし、その関数を理解するのが難しいテンプレートで使用するマークアップ。