Looking for something simple (like Smarty for PHP or erb in Rails), but that will allow nesting templates inside each other. Does App Engine have anything built-in, or will I need to look into something separate (like Velocity?)?
寻找简单的东西(如Smarty for PHP或erb in Rails),但这样可以将模板嵌套在彼此内部。 App Engine是否内置任何内容,或者我是否需要单独查看某些内容(如Velocity?)?
Thanks.
4 个解决方案
#1
If you need the templating engine for creating HTML pages (or other content that you are sending to the user directly), you could use JSP, I suppose.
如果你需要模板引擎来创建HTML页面(或者你直接发送给用户的其他内容),我想你可以使用JSP。
JSP support comes built-in with App Engine.
JSP支持内置App Engine。
#2
If you're looking at Velocity, you may also want to consider Freemarker. It has a more complex, but correspondingly richer, markup language than Apache Velocity.
如果你正在看Velocity,你可能还想考虑Freemarker。它具有比Apache Velocity更复杂但相应更丰富的标记语言。
#3
Rythm is a fast, feature rich and developer friendly template engine. The site itself is running on GAE
Rythm是一个快速,功能丰富且开发人员友好的模板引擎。该网站本身在GAE上运行
#4
My lightweight template engine, Chunk Templates, will run in Google App Engine.
我的轻量级模板引擎Chunk Templates将在Google App Engine中运行。
Chunk features includes, branching, looping, and macros, and has a simpler {$tag}
syntax than Velocity and Freemarker.
块功能包括分支,循环和宏,并且具有比Velocity和Freemarker更简单的{$ tag}语法。
Plenty of built-in tag filters too, eg:
大量的内置标签过滤器,例如:
{% $value|sprintf(%.02f) %}
{% $value|onempty("N/A") %}
#1
If you need the templating engine for creating HTML pages (or other content that you are sending to the user directly), you could use JSP, I suppose.
如果你需要模板引擎来创建HTML页面(或者你直接发送给用户的其他内容),我想你可以使用JSP。
JSP support comes built-in with App Engine.
JSP支持内置App Engine。
#2
If you're looking at Velocity, you may also want to consider Freemarker. It has a more complex, but correspondingly richer, markup language than Apache Velocity.
如果你正在看Velocity,你可能还想考虑Freemarker。它具有比Apache Velocity更复杂但相应更丰富的标记语言。
#3
Rythm is a fast, feature rich and developer friendly template engine. The site itself is running on GAE
Rythm是一个快速,功能丰富且开发人员友好的模板引擎。该网站本身在GAE上运行
#4
My lightweight template engine, Chunk Templates, will run in Google App Engine.
我的轻量级模板引擎Chunk Templates将在Google App Engine中运行。
Chunk features includes, branching, looping, and macros, and has a simpler {$tag}
syntax than Velocity and Freemarker.
块功能包括分支,循环和宏,并且具有比Velocity和Freemarker更简单的{$ tag}语法。
Plenty of built-in tag filters too, eg:
大量的内置标签过滤器,例如:
{% $value|sprintf(%.02f) %}
{% $value|onempty("N/A") %}