Commit graph

17 commits

Author SHA1 Message Date
Kijin Sung
0f14ad8ccf Add error checking directive and unit tests for it 2023-10-18 00:29:32 +09:00
Kijin Sung
d4654eb5cf Remove member directive, and extend auth directive to look at grants 2023-10-18 00:12:40 +09:00
Kijin Sung
e044e11c5f Convert include code into a method of Template class 2023-10-18 00:01:11 +09:00
Kijin Sung
012dbb9ab7 Convert resource loading code into a method of Template class 2023-10-17 23:29:55 +09:00
Kijin Sung
55cafc5c33 Convert class and style builder into a method of Template class 2023-10-17 22:44:27 +09:00
Kijin Sung
a6afa3a61d Add loop variable and dump directive; reorganize template v2 unit tests 2023-10-17 20:12:22 +09:00
Kijin Sung
bbd19c814b Remove unnecessary autoescape setting for template v2 2023-10-15 22:39:36 +09:00
Kijin Sung
936663f804 Remove need for wrapper class in unit tests 2023-10-15 20:12:46 +09:00
Kijin Sung
ccc67d54e3 Return empty string if template file exists but there is nothing to parse 2023-10-15 16:50:04 +09:00
Kijin Sung
94c16bc363 Fix missing regexp match 2023-10-15 16:46:57 +09:00
Kijin Sung
02639e9aa0 Use the same extension when including template file in v2 2023-10-15 02:55:53 +09:00
Kijin Sung
e0331798d9 Automatically choose .html or .blade.php when template name has no extension 2023-10-15 02:45:31 +09:00
Kijin Sung
f0554137ec Initial implementation of Template Parser v2 2023-10-14 23:36:33 +09:00
Kijin Sung
7263fc9a5b Support disabling template cache and alternative version directive 2023-10-11 01:33:08 +09:00
Kijin Sung
a5c0f61b67 Allow customizing the extension in Template constructor 2023-10-11 00:21:24 +09:00
Kijin Sung
d46d25c69f Fix Template class not recognizing extensions other than .html and .php 2023-10-10 15:05:15 +09:00
Kijin Sung
3505d49de6 Separate common Template class from Template v1 parser 2023-10-03 23:27:02 +09:00