问题标签 [middleman-4]

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 回答
22 浏览

haml - 中间人`concat`视图助手不起作用

我正在尝试在 Middleman 中使用concat(就像使用Rails one一样),但它似乎不起作用。例如,这不起作用:

结果是一个空页面。

但是,capture(就像Rails one一样)可以按您的预期工作。此外,使用concat. 它根本行不通。

是我误解了什么还是 Middleman 不支持concat

编辑:我还发现它的haml_concat行为符合我的预期。为什么concat不能类似地工作?