Commit graph

19619 commits

Author SHA1 Message Date
Kijin Sung
66980edab1 Allow use, include, and load directives to appear anywhere in a line 2023-10-17 03:06:40 +09:00
Kijin Sung
11ef5dcfff Add support for Blade-style @class and @style directives 2023-10-17 02:45:22 +09:00
Kijin Sung
668feea9e9 Add support for Blade-style @each include loop 2023-10-17 02:26:06 +09:00
Kijin Sung
eba9a4d333 Add unit test for actually compiling a v2 template 2023-10-17 00:33:36 +09:00
Kijin Sung
84471c83e6 Fix incorrect indentation of refresh.html 2023-10-17 00:18:16 +09:00
Kijin Sung
b0d288cb18 Complete unit tests for all the features of template parser v2 2023-10-16 23:56:11 +09:00
Kijin Sung
7fd916a81e Fix miscellaneous issues with template parser v2 2023-10-16 23:55:47 +09:00
Kijin Sung
f2fabab239 Fix conversion of paths relative to the Rhymix install directory 2023-10-16 21:15:52 +09:00
Kijin Sung
5899845b1d Update unit tests for template v2 2023-10-16 13:16:20 +09:00
Kijin Sung
91ab93c03a Fix {!! !!} unescaped echos not being recognized in template v2 2023-10-16 13:15:17 +09:00
Kijin Sung
1b9e2f58b7 Add unit tests for <load> @load syntax of template v2 2023-10-16 00:50:20 +09:00
Kijin Sung
3e1587c2ac Fix variable scope and absolute path handling in include syntax of template v2 2023-10-16 00:30:56 +09:00
Kijin Sung
8c4dfe744f Use actually existing filename for v1 parse test 2023-10-15 23:43:31 +09:00
Kijin Sung
27ab3fa7d9 More unit tests for template parser v2 2023-10-15 23:42:49 +09:00
Kijin Sung
881df020aa Fix ^/ path not working in <include> 2023-10-15 23:42:32 +09:00
Kijin Sung
0a2af3a1e7 Support legacy "cond" attribute in <include> 2023-10-15 23:35:06 +09:00
Kijin Sung
6893e08553 Prepend code in postprocessing, not preprocessing 2023-10-15 23:26:04 +09:00
Kijin Sung
1067588754 Unit tests should inherit Codeception\Test\Unit, not Codeception\TestCase\Test 2023-10-15 23:05:46 +09:00
Kijin Sung
9da1d56b21 Partial implementation of unit test for template parser v2 2023-10-15 23:03:27 +09:00
Kijin Sung
a362f27f62 Force write the version number in template parser v2 2023-10-15 23:03:03 +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
4e8c184d0c Don't add .html automatically to template name 2023-10-15 02:45:58 +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
44e1ed32a2 Add better comments to template parsers 2023-10-15 02:30:54 +09:00
Kijin Sung
b5cf446375 Properly escape and unescape Blade-style directives 2023-10-15 01:44:56 +09:00
Kijin Sung
b2cac3e868 Remove old TemplateHandler class, leaving only an alias for BC 2023-10-15 00:54:59 +09:00
Kijin Sung
93a0b63fdb Initialize unit test for TemplateParser v2 2023-10-15 00:51:49 +09:00
Kijin Sung
a640306123 Move unit test for TemplateParser v1 2023-10-15 00:50:26 +09:00
Kijin Sung
f13e3d633b Remove lang from exception list in TemplateParser_v1 2023-10-15 00:24:12 +09:00
Kijin Sung
5c5391ab12 Merge branch 'develop' into template-v2 2023-10-14 23:55:42 +09:00
Kijin Sung
f0554137ec Initial implementation of Template Parser v2 2023-10-14 23:36:33 +09:00
Kijin Sung
58c910dfa0 Add very old XE DB classes to cleanup list 2023-10-14 17:49:41 +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
a2767b0dd8 Merge branch 'develop' into template-v2 2023-10-10 15:13:47 +09:00
Kijin Sung
861135bd6c Fix undefined variables in article page 2023-10-10 15:12:17 +09:00
Kijin Sung
45f016d53b Update references to TemplateHandler in common code paths 2023-10-10 15:05:46 +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
16572c4515 Make TemplateHandler inherit Template nstead of class_alias 2023-10-10 14:52:17 +09:00
Kijin Sung
c777b59afb Merge branch 'develop' into template-v2 2023-10-10 14:23:39 +09:00
Kijin Sung
6928abbe2c Version 2.1.7 2023-10-10 12:46:09 +09:00
Kijin Sung
416b9c8498 Fix #2198 type error in debug panel for async requests 2023-10-10 11:16:03 +09:00
Kijin Sung
610a23f2fb Fix all async HTTP requests being treated as slow 2023-10-10 11:15:30 +09:00
Kijin Sung
3c29b7dff3 Update CKEditor to 4.22.1 final version 2023-10-09 21:39:30 +09:00
Kijin Sung
74be21ff5a Fix missing clearfix in scrap list 2023-10-08 15:02:55 +09:00
Kijin Sung
adb9942bd6 Don't set timezone in session until somebody calls setTimezone(), allowing fallback to system default timezone 2023-10-08 01:30:41 +09:00