Skip to content
kandilaki edited this page Aug 13, 2014 · 3 revisions

Welcome to the C-3PO wiki!

C-3PO

JVM-based static web site generator

Resources

http://stackoverflow.com/questions/4966806/velocity-vs-apache-tiles/12185610#12185610

Research

There's a difference between a layout engine (e.g. Tiles, Smarty) and a template engine (e.g. JSP, Velocity)

  • layout engine builds a document out of mostly static fragments
  • template engine fills templates with context data

Apache Tiles: after skimming through documentation, it seems that Apache Tiles is designed to run within a servlet container. There might be ways to run Tiles without a servlet container.

Freemarker: actually it's more a template engine, but obviously with decent support for doing layout stuff through include. +1 cause it's designed to run independently of any web technology like servlets.

Thymeleaf: seems to be one of the newer kids in the Java template engines family. Support for layouts is described in http://www.thymeleaf.org/doc/layouts.html. Documentation says that is can be executed in both web and non-web environments, no hard dependency on servlet container.

Clone this wiki locally