Skip to content

Commit

Permalink
chore(*) release 2.0.0
Browse files Browse the repository at this point in the history
### Added
- Support for `template.new()` and `template.new(options)`
- 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.root` and `template.location` properties

### 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 committed Feb 20, 2020
1 parent 5fd3e56 commit c946d27
Show file tree
Hide file tree
Showing 4 changed files with 999 additions and 492 deletions.
20 changes: 20 additions & 0 deletions Changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,26 @@

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

## [2.0] - 2020-02-20

### Added
- Support for `template.new()` and `template.new(options)`
- 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.root` and `template.location` properties

### 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).
Expand Down
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 c946d27

Please sign in to comment.