简体   繁体   中英

Is there a HTML templating engine for Google App Engine (in Java)?

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?)?

Thanks.

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.

JSP support comes built-in with App Engine.

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.

Rythm is a fast, feature rich and developer friendly template engine. The site itself is running on GAE

My lightweight template engine, Chunk Templates , will run in Google App Engine.

Chunk features includes, branching, looping, and macros, and has a simpler {$tag} syntax than Velocity and Freemarker.

Plenty of built-in tag filters too, eg:

{% $value|sprintf(%.02f) %}

{% $value|onempty("N/A") %}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM