Jamon - a typed template engine for Java

本项目在 模板引擎 中的评分:   7
Jamon - a typed template engine for Java

Features:

  • Jamon has a rich feature set to support encapsulation, parameterization, functional decomposition, and reuse of presentation logic.
  • Since rendering logic may be arbitrarily complicated (e.g. rendering hierarchical data such as a recursive directory structure), this logic needs to be expressable in a Turing-complete language. Rather than invent yet another language, use Java itself inside the presentation framework. Jamon helps keep the rendering logic in the presentation layer technology.
  • Jamon templates declare the arguments required for rendering. This provides a well-defined contract between the presentation layer and the application.
  • Jamon allows passing arbitrary objects between templates (only Tea seems to provide this capability). Jamon templates can pass arbitrary dynamic content (i.e. template fragments) as parameters to other templates. (In fact, Jamon allows passing parameterized fragments, i.e. templates can be "higher-order".)
  • Templates are compiled into Java and then into bytecode, and are referred to in application code just like any other Java class.
  • Templates are translated into Java classes with public methods whose signatures reflect the arguments declared in the templates. This provides compile-time type-checking as well as excellent performance.
  • During development, changes to template sources at runtime trigger dynamic retranslation and recompilation of the templates. This dynamic recompilation can be turned off for production deployment.
  • Jamon is general-use in the sense that it can produce any arbitrary text output format (for contrast, Enhydra XMLC and Zope are tied to HTML or XML). Consider "views" such as generating text and / or multipart MIME email, or program source code.


  • 其他Java 模板引擎 开源项目资源:

    本网站对列举的开源项目、软件、源码、类库所评定的分值(PR, Progject Rank),是根据该项目的规模、复杂度、采用人数、开发人数、活跃度、说明文档、演示网站等诸多因素综合所给出主观评价,仅供你参考之用。
    List of Companies, Suppliers, Distributors, Importers & Exporters
    收藏本网站 | 联系我们 | 英文图书网 | 十万个为什么 | Sitemap生成器 | 国际商贸
    Copyright © 2007 - 2012 Why and How