Simon Wisselink
cabcafc7ea
Fix smarty-lexer dependency for the time being (remove direct ref to github)
2023-01-25 21:58:46 +01:00
Simon Wisselink
a72f83d989
Fix smarty-lexer dependency for the time being
2023-01-25 21:58:04 +01:00
Simon Wisselink
9e2399b020
updated todo
2023-01-25 17:00:12 +01:00
Simon Wisselink
169cd924df
Re-organized rendering (read source / compile / cache) process to avoid circular dependencies.
...
Deactivated merge_compiled_includes and the {include inline} attribute. They don't seem to do much in terms of performance, but we'll
have to check back.
2023-01-25 16:59:10 +01:00
Simon Wisselink
46dfed3837
Updated the changelog
2023-01-24 22:45:35 +01:00
Simon Wisselink
754db3b2e3
correct type of repository
2023-01-24 16:31:46 +01:00
Simon Wisselink
971c4d5158
Shouldnt need Github token now
2023-01-24 16:18:36 +01:00
Simon Wisselink
a8cf56e4f4
attempt to load smarty-lexer directly from zip file
2023-01-24 16:18:09 +01:00
Simon Wisselink
45de28107a
Update ci.yml
2023-01-24 16:12:53 +01:00
Simon Wisselink
79842c8baf
Update ci.yml
2023-01-24 16:08:16 +01:00
Simon Wisselink
0e380a1748
fixes in source files
2023-01-24 16:05:38 +01:00
Simon Wisselink
f53eb27450
Update ci.yml
2023-01-24 15:56:26 +01:00
Simon Wisselink
a5a15b8b1e
Update ci.yml
2023-01-24 15:54:15 +01:00
Simon Wisselink
262221f0b7
revise CI/CD workflows, bypass packagist for lexer
2023-01-24 15:49:44 +01:00
Simon Wisselink
344b3e3a31
Attempt to fix CI
2023-01-24 13:59:17 +01:00
Simon Wisselink
b798362871
Run composer install before online test run
2023-01-24 12:57:01 +01:00
Simon Wisselink
1a8ee6ebda
Merge branch 'master' into smarty5
2023-01-24 12:53:58 +01:00
Simon Wisselink
641678083b
Add TODO list
2023-01-24 12:14:55 +01:00
Simon Wisselink
ecfa4bfa16
Fixed getCachedContent
2023-01-24 12:09:47 +01:00
Simon Wisselink
9cc60f5e38
Convert isset and empty to modifiercomilers, and smooth the error handling to fix unit tests.
2023-01-24 12:01:20 +01:00
Simon Wisselink
431d77505f
Fixed all scope assignment bugs
2023-01-24 10:16:00 +01:00
Simon Wisselink
c5f555eed4
Drop a unit tests bc we no longer support direct access to PHP-functinos such as sin()
2023-01-23 16:59:52 +01:00
Simon Wisselink
2cf658c9c3
Fix function call compilation using {functionname} syntax for in-template defined functions.
2023-01-23 16:56:42 +01:00
Simon Wisselink
ecac24d073
Fixed bug in {include} variable assignment and removed some unused/unrequired code
2023-01-23 16:40:27 +01:00
Simon Wisselink
34a0a2876b
Fix major {include} bug
2023-01-23 15:56:26 +01:00
Simon Wisselink
3922c1eb1e
Fixed the {if} failures.
2023-01-23 15:34:29 +01:00
Simon Wisselink
68c59e6627
Fix all foreach unit tests
2023-01-23 15:16:45 +01:00
Simon Wisselink
ad2703dd75
Handle BC registered compilers and missed parameters for openTag and closeTag.
2023-01-23 12:08:36 +01:00
Simon Wisselink
f1c3ac4395
Fixed all inheritance issues
2023-01-23 11:45:29 +01:00
Simon Wisselink
7c02bb9a63
Fix inhertiance implementation for $smarty.block.child
2023-01-23 08:47:49 +01:00
Simon Wisselink
4bbe94f4e0
Removed the undocumented {block_parent} and {parent} alternatives to {$smarty.block.parent}
...
and {block_child} and {child} alternatives to {$smarty.block.child}
2023-01-22 23:01:05 +01:00
Simon Wisselink
bdb379d8fb
Simply the "isFresh" method by not including the first param anymore. Fix a couple of unit tests by respecting tag_nocache set by nocache vars used in a tag.
2023-01-22 22:44:45 +01:00
Simon Wisselink
2d2d052557
Fix default plugin handler
2023-01-21 00:03:08 +01:00
Simon Wisselink
f1f3874780
Made exception msgs exactly the same again, fixing some unit tests
2023-01-20 23:45:27 +01:00
Simon Wisselink
4ea8838d3b
Fix testRegisterCompilerFunction by parsing argument correctly.
2023-01-20 23:42:08 +01:00
Simon Wisselink
03430c4f94
Fixed block append/prepend functionality
2023-01-20 23:16:41 +01:00
Simon Wisselink
2fbf67b32e
Moved handling of smarty.block.* to special compilers, because they aren't real tags. Organized tag-stack handling in compiler, unified nocache handling in compiler.
2023-01-20 17:22:00 +01:00
Simon Wisselink
390f34318d
Fixed cacheability of block plugins.
2023-01-19 23:29:10 +01:00
Simon Wisselink
27dd3e4c57
Fix function caching function name
2023-01-19 22:35:03 +01:00
Simon Wisselink
41c8bd3035
@var integer > @var int for vsCode
2023-01-19 22:32:06 +01:00
Simon Wisselink
38cad9723e
Fix searchParents parameter, fixing GetTemplateVarsTest
2023-01-19 22:30:16 +01:00
Adrien Poupa
5988116c81
PHP 8.1 deprecation warnings on null strings in modifiers ( #834 )
2023-01-17 00:24:23 +01:00
Simon Wisselink
f5b432dea4
Fixed scope in variable assignments in included and extended templates, fixed dependencies for testing freshness of caches. Added some unit tests and fixed a class reference to pass some more tests.
2023-01-13 23:29:05 +01:00
Simon Wisselink
b02061878f
Update test runners: no longer support PHP7.1, add PHP8.2
2023-01-13 23:28:18 +01:00
Simon Wisselink
73ff8fd3d0
Fix unit tests that broke because now is now in 2023
2023-01-13 22:19:17 +01:00
Simon Wisselink
d900a0ef4a
Added variable scope test for multi-level extends resource
2023-01-13 19:23:12 +01:00
Simon Wisselink
5c74dc4a83
Replaced a bunch of direct property access with getters/setters.
2023-01-13 16:55:15 +01:00
Simon Wisselink
3be63a3418
Removed unneeded magic setters/getters/destructors and the like.
2023-01-13 15:56:25 +01:00
Simon Wisselink
cdf1ed2a50
Simplified the (no)caching architecture by:
...
- removing support for $cache_attrs for registered plugins,
- removing the undocumented {make_nocache} tag and the deprecated {insert} tag and associated code
- removing support for a compile_id property on include tags.
Fixes a bug in extends: resources by propagating the nocache-hashes between a master template and it's subtemplates in \Smarty\Template::_subTemplateRender. This might need further improvement.
2023-01-13 15:47:57 +01:00
Simon Wisselink
e0f2c36d4d
converted 3 public properties on Template into getters/setters. unified Template creation code. Provided a getter/setter for the has_nocache_code property. Removed the useless DataObject class. Fixed a few tests. Removed the variable-allow-php-templates property from the docs.
2023-01-13 00:04:08 +01:00