I have been using template toolkit for extending an existing domain specific language(verilog) for over 3 years now. While overall I am happy with it, the major irritant is that when there is a syntax/undef error the error message does not contain the correct line number information to debug the error.
e.g. I would get a message indicating "0 is not defined" since I would be using [%x.0%] and similar constructs at multiple locations in the file figuring out which line has the problem becomes difficult.
TT3 seems to be under development indefinitely
My question to the gurus is is there a better alternative to TT. My requirements are
- Support for complex data structures
- Good error reporting and debug capabilities.
- Stable and proven ( no alpha/beta level engines)
- Extensible (plugin's etc)
- Should not be restricted to a given language (html etc.)
- support for IF/Else, looping(foreach while), Loop indexing, etc.
- Preferably perl
- Support for data dumper or equivalent plugin from within the template is a plus