Commit graph

907 commits

Author SHA1 Message Date
Kijin Sung
fe804163bf Add JSON_HEX_TAG and JSON_HEX_QUOT to JSON output filter 2023-10-17 19:00:00 +09:00
Kijin Sung
3c15589fb8 Allow loops and conditions to appear anywhere in a line 2023-10-17 03:28:20 +09:00
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
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
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
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
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
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
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
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
c777b59afb Merge branch 'develop' into template-v2 2023-10-10 14:23:39 +09:00
Kijin Sung
610a23f2fb Fix all async HTTP requests being treated as slow 2023-10-10 11:15:30 +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
Kijin Sung
c0850865a4 Fix undefined variable in Config::save() 2023-10-07 13:26:14 +09:00
Kijin Sung
639ad7ad06 Fix passing null to strtoupper() 2023-10-06 22:53:27 +09:00
Kijin Sung
a3497cc2b1 Remove unnecessary special treatment of -srl attributes 2023-10-06 22:50:40 +09:00
Kijin Sung
321d0ea88c Fix #2197 preserve position of data-file-srl attribute and trailing slash in tags 2023-10-06 22:49:15 +09:00
Kijin Sung
221602ceb8 Experimental support for data-* attributes in HTML #2194 2023-10-05 22:18:29 +09:00
Kijin Sung
a643ff60eb Pass additional arguments to HTMLFilter preprocessors and postprocessors 2023-10-05 21:02:10 +09:00
Kijin Sung
5ae810a54c Fix #2194 allow <details> amd <summary> tags 2023-10-05 20:52:20 +09:00
Kijin Sung
f589737dcf Fix column name "unknown" in error message for insert/update queries 2023-10-04 20:57:54 +09:00
Kijin Sung
3505d49de6 Separate common Template class from Template v1 parser 2023-10-03 23:27:02 +09:00
Kijin Sung
f15cdecbe1 Fix potential type error in Debug::translateFilename() 2023-10-03 23:11:38 +09:00
Kijin Sung
f8ed6da4ed Support both UUIDv4 and UUIDv7 in Security::getRandomUUID() 2023-10-03 19:22:04 +09:00
Kijin Sung
c01ba1d3cf Clean up missing or inconsistent types in remainder of parser classes 2023-10-03 16:35:20 +09:00
Kijin Sung
141ee7f7e1 Clean up missing or inconsistent types in Lang, ModuleAction, ModuleInfo parser classes 2023-10-03 16:25:35 +09:00
Kijin Sung
df6fdd3bc3 Fix potential type error in editor component XML handling logic 2023-10-03 16:19:04 +09:00
Kijin Sung
db4e874660 Fix incorrect type declaration in XMLRPC parser 2023-10-03 16:18:37 +09:00
Kijin Sung
41febdd7ca Clean up missing or inconsistent types in core filter classes 2023-10-03 15:17:35 +09:00
Kijin Sung
27c8d32dc5 Clean up missing or inconsistent types in Mail, SMS, Push classes 2023-10-03 15:05:06 +09:00
Kijin Sung
7c844c7e24 Make UA::getBrowserInfo() return an instance of itself 2023-10-03 14:45:24 +09:00
Kijin Sung
c93f04f9c1 Clean up missing or inconsistent types in Timer, UA, URL classes 2023-10-03 14:42:38 +09:00