You Here : Home > Linux

Hapax 1.0

OS Support:


Publisher Old version


July 3 2012


Hapax 1.0


Hapax is a simple but powerful templating library for Java. Hapax is a simple but powerful templating library for Java. It is suitable for constructing text output from Java code. The syntax is similar to Google ctemplate library.Hapax was designed to be easy to use and have minimal dependencies. Hapax does not depend on an existing web framework, and is suitable for use in servlets, scripting languages (Scala, Groovy, etc.), and later applications.Here servers are key features of "Hapax" · Hapax imposes a strict separation of "view" of the rest of your logic. · Hapax has no dependence on third code. · Hapax is the test unit. · Hapax is greatly inspired syntax and behavior of Google ctemplate library. · Hapax generate any type of textual production: configuration files, HTML, XML, CSS, etc. · Hapax models do not require a compilation step. The models are analyzed at runtime. · Hapax has native support for certain types of content escape (JavaScript, XML, HTML, URL). · Hapax do not expect your models to come from disk: models can be generated at runtime, stored in a database or any other location.Example: com.xfltr.hapax.examples packages ; com.xfltr.hapax.Template import, import com.xfltr.hapax.TemplateDictionary; com.xfltr.hapax.TemplateException import; HelloWorldExample class (public static void main (String [] args) throws TemplateException (tmpl = Template Template.parse ( "Hello, ((World: }}"); TemplateDictionary pm TemplateDictionary.create dict = (); dict.put (" world "," Iapetus ") System.out.println (tmpl.renderToString (DICT)); ))

Related Downloads

Software Tags

Hapax | Hapax 1.0 | Hapax Free Download | Hapax Reviews | Download Hapax

Size :