Skip to content

Latest commit

 

History

History
44 lines (33 loc) · 873 Bytes

README.md

File metadata and controls

44 lines (33 loc) · 873 Bytes

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.