Commit c08c6bc
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- lib/resty
- template
6 files changed
+1364
-502
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
5 | 29 | | |
6 | 30 | | |
7 | 31 | | |
8 | 32 | | |
9 | 33 | | |
10 | 34 | | |
11 | 35 | | |
| 36 | + | |
12 | 37 | | |
13 | 38 | | |
14 | 39 | | |
15 | 40 | | |
| 41 | + | |
16 | 42 | | |
17 | 43 | | |
18 | 44 | | |
19 | 45 | | |
20 | 46 | | |
21 | 47 | | |
| 48 | + | |
22 | 49 | | |
23 | 50 | | |
24 | 51 | | |
25 | 52 | | |
| 53 | + | |
26 | 54 | | |
27 | 55 | | |
28 | 56 | | |
| |||
34 | 62 | | |
35 | 63 | | |
36 | 64 | | |
| 65 | + | |
37 | 66 | | |
38 | 67 | | |
39 | 68 | | |
| |||
45 | 74 | | |
46 | 75 | | |
47 | 76 | | |
| 77 | + | |
48 | 78 | | |
49 | 79 | | |
50 | 80 | | |
| |||
53 | 83 | | |
54 | 84 | | |
55 | 85 | | |
| 86 | + | |
56 | 87 | | |
57 | 88 | | |
58 | 89 | | |
59 | 90 | | |
| 91 | + | |
60 | 92 | | |
61 | 93 | | |
62 | 94 | | |
| |||
67 | 99 | | |
68 | 100 | | |
69 | 101 | | |
| 102 | + | |
70 | 103 | | |
71 | 104 | | |
72 | 105 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
0 commit comments