gpt4 book ai didi

clojure - 在 enlive 中使用 src 文件夹外的模板

转载 作者:行者123 更新时间:2023-12-02 22:30:19 25 4
gpt4 key购买 nike

是否可以在 enlive 中从源文件夹外部提供模板?

我想从我的 resources/public/templates 文件夹而不是 src/templates 文件夹中获取模板,我该怎么做?

谢谢,穆尔塔扎

最佳答案

您是否尝试过将包含模板的文件夹包含在类路径中。我相信 enlive 会查看您的类路径以找到您指定的模板。
如果 resources/public 文件夹已经在你的类路径中,你的模板路径应该类似于

(detemplate 模板名称 "templates/path/to/template"[] .....)

关于clojure - 在 enlive 中使用 src 文件夹外的模板,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12384394/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com