Skip to content

Commit c08c6bc

Browse files
authored
chore(*) release 2.0.0 (#37)
### 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 parent 5fd3e56 commit c08c6bc

File tree

6 files changed

+1364
-502
lines changed

6 files changed

+1364
-502
lines changed

Changes.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,55 @@
22

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

5+
6+
## [2.0] - 2020-02-24
7+
### Added
8+
- Support for `template.new()`, `template.new(options)` and `template.new(safe)` (a `boolean`)
9+
- Added `safe` implementation `require "resty.template.safe"`
10+
- Added `echo` helper function to template (#28)
11+
- Added `template.load_file` and `template.load_string` functions
12+
- Added `template.compile_file` and `template.compile_string` functions
13+
- Added `template.parse_file` and `template.parse_string` functions
14+
- Added `template.render_file` and `template.render_string` functions
15+
- Added `template.precompile_file` and `template.precompile_string` functions
16+
- Added `template.process`, `template.process_file` and `template.process_string` functions
17+
- Added `template.root` and `template.location` properties
18+
- Added `template.visit` function (#36)
19+
20+
### Changed
21+
- When `plain` equals to `false` the file io issues are considered
22+
fatal, and assertions are thrown (#32)
23+
24+
### Fixed
25+
- Wrong template returned when using multiple server blocks (#25)
26+
- Add a pure lua configure method (#23, #7)
27+
28+
529
## [1.9] - 2016-09-29
630
### Added
731
- Support for the official OpenResty package manager (opm).
832

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

36+
1237
## [1.8] - 2016-06-14
1338
### Added
1439
- Allow pass layout as a template object to template.new.
1540

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

48+
2249
## [1.6] - 2016-04-25
2350
### Added
2451
- Added short escaping syntax.
2552

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

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

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

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

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

102+
70103
## [1.0] - 2014-08-28
71104
### Added
72105
- LuaRocks Support via MoonRocks.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2014 - 2017 Aapo Talvensaari
1+
Copyright (c) 2014 - 2020 Aapo Talvensaari
22
All rights reserved.
33

44
Redistribution and use in source and binary forms, with or without modification,

0 commit comments

Comments
 (0)