Skip to content

Commit

Permalink
chore(*) release 2.0.0 (bungle#37)
Browse files Browse the repository at this point in the history
- 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 (bungle#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 (bungle#36)

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

- Wrong template returned when using multiple server blocks (bungle#25)
- Add a pure lua configure method (bungle#23, #7)
  • Loading branch information
bungle authored and olegrok committed May 9, 2020
1 parent 9abbfa4 commit db04270
Show file tree
Hide file tree
Showing 6 changed files with 1,137 additions and 481 deletions.
2 changes: 1 addition & 1 deletion .luacheckrc
Expand Up @@ -2,7 +2,7 @@ std = {
read_globals = {'box', 'require', 'debug', 'pcall', 'xpcall', 'tostring',
'tonumber', 'type', 'assert', 'ipairs', 'math', 'error', 'string',
'table', 'pairs', 'os', 'io', 'select', 'unpack', 'dofile', 'next',
'loadstring', 'setfenv', 'print', 'load',
'loadstring', 'setfenv', 'print', 'load', '_G', 'rawget',
'getmetatable', 'setmetatable', 'SCRIPT_PATH'
},
globals = {'process_request', 'package'}
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
@@ -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

0 comments on commit db04270

Please sign in to comment.