cuma:Clojure 的可扩展微模板引擎

时间:2021-07-01 18:06:22
【文件属性】:
文件名称:cuma:Clojure 的可扩展微模板引擎
文件大小:23KB
文件格式:ZIP
更新时间:2021-07-01 18:06:22
Clojure 库玛 Clojure 的可扩展微模板引擎。 安装 将以下依赖项添加到您的profject.clj 。 用法 需要[cuma.core :refer [render]] 替换变量 ( render " hello $(x) " { :x " world " }) ; => hello world 替换转义变量。 ( render " $(x) " { :x "

" }) ; =>

替换未转义的变量。 ( render " $(raw x) " { :x "

" }) ; =>

包括另一个模板。 ( render " $(include tmpl) " { :tmpl " hello $(x) " :x " world " }) ; => hello world 将自定义函数应用于变量。 功能详细说明如下。 ( render
【文件预览】:
cuma-master
----.gitignore(141B)
----performance.png(13KB)
----src()
--------cuma()
----.travis.yml(50B)
----README.md(4KB)
----test()
--------cuma()
----project.clj(697B)

网友评论