Commit graph

44 commits

Author SHA1 Message Date
Kijin Sung
50dd010e2d Remove empty class and style attributes when compiling template v2 2025-11-29 11:07:15 +09:00
Kijin Sung
23190bd2f5 Remove all use of global variables as debug timers 2025-08-20 00:34:57 +09:00
Kijin Sung
9d98e47c53 Try one more time before throwing error on template cache file write 2025-07-12 20:30:15 +09:00
Kijin Sung
fc2bdd7253 Make _v2_escape() more lenient about types 2025-03-31 15:14:58 +09:00
Kijin Sung
d7cf825a7d Use regular escape() for CSS contexts 2025-03-19 11:23:42 +09:00
Kijin Sung
9689a1ed68 Implement better contextual escape for template v2 2025-03-19 00:12:39 +09:00
Kijin Sung
800eb2f444 Change behavior of \@mobile directive in template v2 #2510 2025-03-18 22:51:22 +09:00
dewekk
be64c9f5da
템플릿 v2에서 load 지시자의 변수가 잘못 전달되는 문제 수정 2025-01-15 20:59:12 +09:00
Kijin Sung
a2e5434aec Support manager scopes in Template v2 "can" directive 2024-10-14 23:42:53 +09:00
Kijin Sung
1d42b6bde4 Fix #2352 make $tpl_path in templates backward compatible with XE 2024-05-25 01:03:38 +09:00
Kijin Sung
e57c6c5c25 Improve relative path handling in Template v2 #2310 2024-04-30 23:45:17 +09:00
Kijin Sung
9134433adf Fix #2307 remove hash character from TemplateStart/TemplateEnd debugging comment to prevent confusion with SSI directive 2024-04-08 22:55:57 +09:00
Kijin Sung
0b9131e664 Remove unnecessary encoding of /, &, ' in template v2 JSON output 2024-03-24 21:29:54 +09:00
Kijin Sung
bd7ef4bedd Fix unnecessary slash after override_filename (this causes a warning in line 349) 2023-11-18 23:51:29 +09:00
Kijin Sung
e72336c90c Fix #2203 'this' in lang directive will refer to current module 2023-10-31 21:59:33 +09:00
Kijin Sung
3233619eac Fix template v2 not working in external pages
https://xetown.com/questions/1792598
2023-10-31 21:42:27 +09:00
Kijin Sung
96330593fd Add $this->request to module and template instances 2023-10-29 23:37:08 +09:00
Kijin Sung
18c0e14b4b Fix failure to load template file if a directory of the same name (minus the extension) exists in the same path 2023-10-27 16:11:25 +09:00
Kijin Sung
47db7e6a0b Add template variables for backward compatibility 2023-10-27 16:06:48 +09:00
Kijin Sung
8d3a332344 Reset template configuration when paths are provided to compile() or compileDirect() 2023-10-23 14:07:27 +09:00
Kijin Sung
a5d6a76cf4 Add parent reference to Template instances 2023-10-22 00:46:58 +09:00
Kijin Sung
fefd3dd895 Fix path normalization problem 2023-10-21 14:19:20 +09:00
Kijin Sung
6085b82d19 Inherit parent vars and add own vars when a template is included with vars from another template that has vars; add unit tests for vars inheritance 2023-10-21 13:52:02 +09:00
Kijin Sung
9a98e9220d Enforce the order of parameters to the load directive 2023-10-20 20:46:35 +09:00
Kijin Sung
ca5c96d02a Add unit tests for path conversion utilities in Template class 2023-10-18 21:33:49 +09:00
Kijin Sung
c487c13864 Apply context-aware escape more generally; add can/cannot/canany and env directives 2023-10-18 12:09:45 +09:00
Kijin Sung
c19d71847f Implement template v2 feature of pushing to stack 2023-10-18 02:23:18 +09:00
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