Releases: bungle/lua-resty-template
Releases · bungle/lua-resty-template
Release 2.0
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)
Fixed
Release 1.9
Added
- Support for the official OpenResty package manager (opm).
Changed
- Changed the change log format to keep-a-changelog.
Release 1.8
- Feature: Allow pass layout as a template object to template.new
Release 1.7
Release 1.6
- Feature: Added short escaping syntax.
Release 1.5
- Feature: Added support for {-verbatim-}...{-verbatim-}, and {-raw-}...{-raw-} blocks (contents is not processed by template). Please note that this could break your templates if you have used blocks with names "verbatim" or "raw".
- Bugfix: Fixes issue #8: not returning value when using template.new and its render function.
Release 1.4
- Feature: Added support for {[expression include]} syntax.
- Change: Rewrote template.parse (cleaned up, less repetition of code, and better handling of new lines - i.e. doesn't eat newlines anymore. Also some adjustments to preceding spaces (space, tab, NUL-byte, and vertical tabs) on some tags ({% ... %}, {-block-} ... {-block-}, and {# ... #}) for a cleaner output.
Release 1.3
- Bugfix: Fixed a bug when a view was missing from context when using layouts.
- Feature: Small modification to html helper example to handle valueless tag attributes in HTML5 style.
Release 1.2
Release 1.1
- Feature: Added _VERSION information to the module.
- Change: Lua > 5.1 uses _ENV instead of _G (Lua 5.1 uses _G).
Future Proofing if Lua is deprecating _G in Lua 5.3. - Feature: Added CHANGES file to the project.