Skip to content

Releases: bungle/lua-resty-template

Release 2.0

24 Feb 11:40
c08c6bc
Compare
Choose a tag to compare

Added

  • Support for template.new(), template.new(options) and template.new(safe) (a boolean)
  • Added safe implementation require "resty.template.safe"
  • Added echo helper function to template (#28)
  • Added template.load_file and template.load_string functions
  • Added template.compile_file and template.compile_string functions
  • Added template.parse_file and template.parse_string functions
  • Added template.render_file and template.render_string functions
  • Added template.precompile_file and template.precompile_string functions
  • Added template.process, template.process_file and template.process_string functions
  • Added template.root and template.location properties
  • Added template.visit function (#36)

Changed

  • When plain equals to false the file io issues are considered
    fatal, and assertions are thrown (#32)

Fixed

  • Wrong template returned when using multiple server blocks (#25)
  • Add a pure lua configure method (#23, #7)

Release 1.9

29 Sep 16:28
Compare
Choose a tag to compare

Added

  • Support for the official OpenResty package manager (opm).

Changed

  • Changed the change log format to keep-a-changelog.

Release 1.8

14 Jun 21:18
Compare
Choose a tag to compare
  • Feature: Allow pass layout as a template object to template.new

Release 1.7

11 May 09:57
Compare
Choose a tag to compare
  • Bugfix: loadngx was not working properly on non-file input. See also: #19. Thanks @zhoukk.

Release 1.6

25 Apr 09:07
Compare
Choose a tag to compare
  • Feature: Added short escaping syntax.

Release 1.5

10 Feb 10:08
Compare
Choose a tag to compare
  • 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

03 Dec 12:45
Compare
Choose a tag to compare
  • 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

06 Nov 16:32
Compare
Choose a tag to compare
  • 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

29 Sep 17:30
Compare
Choose a tag to compare
  • Bugfix: Fixes nasty recursion bug (reported in bug #5) where sub-templates modify the context table. Thank you for reporting this @ddarko.

Release 1.1

10 Sep 09:42
Compare
Choose a tag to compare
  • 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.