- 授权协议: Apache
- 开发语言:
- 操作系统: Windows
- 软件首页: https://github.com/shenfeng/mustache.clj
- 软件文档: https://github.com/shenfeng/mustache.clj
- 官方下载: https://github.com/shenfeng/mustache.clj
软件介绍
mustache.clj 是一个mustache模板的Clojure实现。 在开发Rssminer时,因需要一个更快更轻巧的模板库,而开发。
特点:
- 零依赖,小巧。包含源代码的jar仅16K
- 速度快。在i5机器上,一个测试中,每秒可生成约300M的HTML
- 通过Macro,完成模板到函数的转化,使用简单
示例代码:
(deftemplate template (slurp "test/sample.tpl"))
(def data {:title "mustache.clj"
:desc "Logic-less {{mustache}} templates for Clojure"
:tags [{:tag "Clojure"}
{:tag "Mustache"}
{:tag "Performance"}]})
(println (template data))
<!-- 模板 test/sample.tpl -->
<h1>{{ title }}</h1>
<p class="desc">{{ desc }}</p>
<ul>
{{#tags}}
<li class="tag">{{ tag }}</li>{{/tags}}
{{# hidden }}
this will not show, if hidden is false or empty list
{{/ hidden }}
</ul>
输出:<h1>mustache.clj</h1> <p class="desc">Logic-less {{mustache}} templates for Clojure</p> <ul> <li class="tag">Clojure</li> <li class="tag">Mustache</li> <li class="tag">Performance</li> </ul>
解决网页设计一定会遇到的210个问题
2006-4 / 42.00元
如何选择适合、简单、方便、快速的方法来解决您的网页设计问题?不会HTML、JavaScript、CSS也可轻易完成许多网页功能与特效。本书包含上百种HTML、JavaScript、CSS使用应用技巧与盲点解说,包含10个常用表单资料判断函数与特殊技巧,不必修改就可用于任何网页。本书现有的多数网页设计书籍相辅相成,让您事半功倍地完成工作。 许多计算机书籍都是从某个语言或者某个软件的......一起来看看 《解决网页设计一定会遇到的210个问题》 这本书的介绍吧!
