引导页
使用引导生成 Clojure 静态页面。 从描述和一个或多个布局文件生成多个页面。 还负责将缓存破坏指纹(哈希)附加到标记的静态资产。
通过将以下几行添加到 build.boot 来包含在现有引导项目中
( require
'[dthiffault.boot-pages :refer [pages]])
然后在您的资源文件夹中创建一个名为 pages.edn 的文件
{ :defaults { :layout " default.html " }
:pages [{ :path " index.html " :init-fn " todoapp.run() " :title " Welcome to the site " }
{ :path " myotherpage.html " :init-fn " settings.run() " :title