Skip to content

Commit

Permalink
chore(*) release 2.0.0 (#37)
Browse files Browse the repository at this point in the history
### 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)
  • Loading branch information
bungle authored Feb 24, 2020
1 parent 5fd3e56 commit c08c6bc
Show file tree
Hide file tree
Showing 6 changed files with 1,364 additions and 502 deletions.
33 changes: 33 additions & 0 deletions Changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,55 @@

All notable changes to `lua-resty-template` will be documented in this file.


## [2.0] - 2020-02-24
### 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)


## [1.9] - 2016-09-29
### Added
- Support for the official OpenResty package manager (opm).

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


## [1.8] - 2016-06-14
### Added
- Allow pass layout as a template object to template.new.


## [1.7] - 2016-05-11
### Fixed
- The loadngx was not working properly on non-file input.
See also: https://github.com/bungle/lua-resty-template/pull/19
Thanks @zhoukk


## [1.6] - 2016-04-25
### Added
- Added short escaping syntax.


## [1.5] - 2015-02-10
### Added
- Support for {-verbatim-}...{-verbatim-}, and {-raw-}...{-raw-} blocks
Expand All @@ -34,6 +62,7 @@ All notable changes to `lua-resty-template` will be documented in this file.
- Issue #8: not returning value when using template.new and its render
function.


## [1.4] - 2014-12-03
### Added
- Added support for {[expression include]} syntax.
Expand All @@ -45,6 +74,7 @@ All notable changes to `lua-resty-template` will be documented in this file.
and vertical tabs) on some tags ({% ... %}, {-block-} ... {-block-},
and {# ... #}) for a cleaner output.


## [1.3] - 2014-11-06
### Added
- Small modification to html helper example to handle valueless tag
Expand All @@ -53,10 +83,12 @@ All notable changes to `lua-resty-template` will be documented in this file.
### Fixed
- Fixed a bug when a view was missing from context when using layouts.


## [1.2] - 2014-09-29
### Fixed
- Fixes nasty recursion bug (reported in bug #5) where sub-templates
modify the context table. Thank you for reporting this @DDarko.


## [1.1] - 2014-09-10
### Added
Expand All @@ -67,6 +99,7 @@ All notable changes to `lua-resty-template` will be documented in this file.
- Lua > 5.1 uses _ENV instead of _G (Lua 5.1 uses _G). Future Proofing
if Lua is deprecating _G in Lua 5.3.


## [1.0] - 2014-08-28
### Added
- LuaRocks Support via MoonRocks.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2014 - 2017 Aapo Talvensaari
Copyright (c) 2014 - 2020 Aapo Talvensaari
All rights reserved.

Redistribution and use in source and binary forms, with or without modification,
Expand Down
Loading

0 comments on commit c08c6bc

Please sign in to comment.