Added
- Support for
template.new()
,template.new(options)
andtemplate.new(safe)
(aboolean
) - Added
safe
implementationrequire "resty.template.safe"
- Added
echo
helper function to template (#28) - Added
template.load_file
andtemplate.load_string
functions - Added
template.compile_file
andtemplate.compile_string
functions - Added
template.parse_file
andtemplate.parse_string
functions - Added
template.render_file
andtemplate.render_string
functions - Added
template.precompile_file
andtemplate.precompile_string
functions - Added
template.process
,template.process_file
andtemplate.process_string
functions - Added
template.root
andtemplate.location
properties - Added
template.visit
function (#36)
Changed
- When
plain
equals tofalse
the file io issues are considered
fatal, and assertions are thrown (#32)