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.
在很多情况下,我有很多 HTML,我只想按原样嵌入到我的 Hamlet 模板中,而不是将其显式转换为 Hamlet。
我还没有真正找到这样做的好方法,因为如果我readFile在defaultLayout构造包装模板的地方(或任何其他地方)使用,我需要指定文件的路径,这意味着我需要当我部署我的应用程序时有可用的文件。
readFile
defaultLayout
我正在寻找的是类似于静态资产处理程序的方式,在那里我得到一个函数,例如css_bootstrap_css,我可以使用它来链接到资产,并将它与应用程序一起构建。
css_bootstrap_css