MGTemplateEngine
By Matt Legend Gemmell
http://mattgemmell.com/
What is it?
-----------
MGTemplateEngine is a native Cocoa system for generating text output based on templates and data. It's a close cousin of systems like Smarty, FreeMarker, Django's template language, and other such systems.
The default syntax for markers (functions or language-constructs) is:
{% for 1 to 5 %} foo {% /for %}
and the default syntax for variables/expressions is:
{{ foo.bar | uppercase }}
The pipe-character indicates a filter is being applied; i.e. the value of "foo.bar" will then be fed to the "uppercase" filter before being displayed. You can apply filters to markers as well as variables.
The marker, variable and filter delimiters are completely customizable, so you're not stuck with the defaults if you prefer different syntax.
分享到:
相关推荐
内含小型项目和国际开源项目的README.md文件的模板,资源类型为.md文件,文件内容可根据需要自行更改。
GitHub上有很多很棒的README模板,但是我找不到真正适合我需要的模板,因此我创建了这个增强的模板。 我想创建一个自述模板,如此出色,以至于它将成为您需要的最后一个模板-我想就是这样。 原因如下: 您的时间...
README.md:README.md模板和示例
开源的readme.md编写工具。windows平台
uboot readme 中文注释 uboot readme 中文注释uboot readme 中文注释uboot readme 中文注释uboot readme 中文注释uboot readme 中文注释uboot readme 中文注释uboot readme 中文注释uboot readme 中文注释uboot ...
Readme 破解使用说明
springboot readme参考文档 带链接跳转
readme.rar
缺少README.mdown可以下载使用
loadrunner 9.5 crack readme
readme,matlab处理文件
README
LIBSVM是台湾大学林智仁(Lin Chih-Jen)副教授等开发设计的一个简单、易于使用和快速有效的SVM模式识别与回归的软件包,他不但提供了编译好的可在Windows系列系统的执行文件,还提供了源代码,方便改进、修改以及在...
Grub4dos 中文ReadMe 0.4.4版
Readme-说明
A basic readme file for running benami games
用于TypeScript和Node的初始化模板,具有详细的README,描述如何将它们一起使用
matlab开发-ReadMe。设置matlab语音处理练习的详细步骤
READ README模板,任何人都可以在其GitHub上复制和使用。 项目名称有关项目功能的其他信息文本行。 您的简介应该大约2或3行。 不要过度使用,人们不会阅读。 调整和改进该项目仍在开发中,下一个更新将集中在以下...