Skip to content

Simn/hxtemplo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hxtemplo

Haxe port of Nicolas' templo template engine.

Installation

Install the library via haxelib

haxelib install hxtemplo 

Usage

templo.Template.fromString(s:String, ?sourceName = null);
// or
templo.Template.fromFile(path:String);

Supported directives

Templo directives start with two double-dots: ::directive. The supported directives are:

  • ::raw
  • ::if, ::elseif and ::else
  • ::foreach
  • ::set
  • ::fill
  • ::cond (within node definition)
  • ::repeat (within node definition)
  • ::attr (within node definition)
  • ::switch and ::case
  • ::use
  • ::eval

The following directives are currently unsupported:

  • ::compare
  • ~=

Dependencies

This Haxe library depends on hxparse.

About

Haxe port of Nicolas' templo template engine

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages