在网易新闻的ipa发现的这个readme,用于新闻正文模版的
来源:互联网 发布:软件设计师教程最新版 编辑:程序博客网 时间:2024/06/01 08:44
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.
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.
- 在网易新闻的ipa发现的这个readme,用于新闻正文模版的
- 模仿网易新闻做的新闻软件
- iOS仿网易新闻、新浪新闻的新闻客户端
- 仿网易新闻的ViewpagerIndicator
- 仿网易新闻的导航条及其新闻类别选择
- 模仿网易新闻的首页特效
- 类似网易新闻客户端的滑动UINavigationViewController
- 仿网易新闻顶部 图片的indicator
- 网易新闻——多线程的改进
- 一个简单网易新闻页面的实现
- 模拟网易新闻主页的滚动效果
- 类似网易新闻首页的滑动效果
- 仿网易新闻评论的楼层效果
- tab选项卡,类似网易新闻的
- ListView的应用,模拟网易新闻
- 仿网易新闻的顶部导航指示器
- 实现网易新闻的tab切换效果
- Viewpager实现类似网易新闻的效果
- 关于Jquery中ajax方法data参数用法的总结
- js实现录音连续播放
- Ural 1513
- 运用手势操作ListView中的Item
- 'nasmw'不是内部或外部命令,也不是可运行程序
- 在网易新闻的ipa发现的这个readme,用于新闻正文模版的
- C#删除文件夹文件
- oracle 11g导出时,解决空表不被导出的情况
- Android 加载大图片时内存溢出的问题
- ant命令总结
- JSSE应用实例
- 程序、进程、线程区别与联系
- CentOS5下apache+php环境搭建
- C# ToString()方法一些特殊用法