Supriya Ghosh (Editor)

Comparison of web template engines

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit

The following table lists the various Web Template Engines used in Web template systems and a brief rundown of their features. The content here is a work in progress.

LEGEND:

  • Engine (implementation) = engine name
  • Languages = implementation language of the engine (not the template script language)
  • License = Software license agreement
  • Platform = Computing platform
  • Variables = script language power to use variables
  • Functions = script language power to use functions
  • Includes = script language power include external files
  • Conditional inclusion = script language power to conditional includes
  • Looping = script language power to do loops (for, while) or recursion
  • Evaluation (language) = script language power to do "eval command" (to the implementation language)
  • Assignment = set names and references to sub-templates (?)
  • Errors and exceptions = engine output script errors.
  • i18n = Internationalization and localization feature
  • Natural templates = the template can be a document as valid as the final result, the engine syntax doesn't break the document's structure
  • Inheritance = Supports the ability to inherit a layout from a parent template, separately overriding arbitrary sections of the parent template's content.
  • For inclusion above

  • Paperclip (JavaScript/DOM/Node template engine) - fast, reactive templates.
  • Twirl (Scala: Template engine) - a clone of the Play Framework's template engine.
  • Embedded Perl(Mojolicious: Embedded Perl) - Embedded Perl is a powerful templating engine for use with the Mojolicious Web Framework. It supports variables, functions, includes, conditional inclusion, looping, evaluation, assignment, exceptions, i18n, natural templates, and inheritance.
  • erlydtl erlydtl django for erlang
  • Latte, template engine originating from Nette Framework
  • Foil
  • PH7 Engine
  • Haanga
  • TPLN
  • References

    Comparison of web template engines Wikipedia