Simon Wisselink
7a6cbca7e4
Merge branch 'master' into smarty5
2023-08-07 23:25:59 +02:00
Simon Wisselink
90bb78f32d
Added Smarty::setExtensions(), fixed unit test for the null coalescing operator. Updated docs about registering a custom extension.
2023-08-07 15:59:13 +02:00
Simon Wisselink
d8b4496b7e
finished docs on security and extending smarty
2023-08-07 01:44:57 +02:00
Simon Wisselink
8492bf5c61
Docs on caching
2023-08-07 00:14:54 +02:00
Simon Wisselink
86b7d45399
Rewrote docs on filters and resources.
2023-08-06 01:09:31 +02:00
Simon Wisselink
4550bd8dfd
Improved docs on compile checking and inheritance
2023-05-03 23:34:44 +02:00
Simon Wisselink
41962d5790
more docs
2023-05-02 01:17:12 +02:00
Simon Wisselink
f7868b4ff1
Add docs for null coalescing
2023-05-01 23:57:53 +02:00
Simon Wisselink
81cda9e363
Added full support and documentation for ternary operator.
...
Fixes #881
2023-05-01 23:25:42 +02:00
Simon Wisselink
cea303d0ad
Fixed markdown syntax. Fixes #879
2023-04-30 23:28:15 +02:00
Simon Wisselink
d8ce15ee9b
WIP docs (added page on config)
2023-03-24 11:52:18 +01:00
Simon Wisselink
1afd49e973
WIP on API docs
2023-03-10 23:49:41 +01:00
Simon Wisselink
5db8fd2533
Further WIP improving docs
2023-03-09 23:16:18 +01:00
Simon Wisselink
801d186ea4
CompileCheck test and extra note on how it works in docs
2023-02-23 22:17:06 +01:00
Simon Wisselink
7a323b7345
Update code examples to use Smarty\Smarty and autoload instead of require_once calls and new Smarty
2023-02-06 15:18:47 +01:00
Simon Wisselink
cf84802072
Finished improving designers docs
2023-02-06 14:56:06 +01:00
Simon Wisselink
4c6afd6b37
Improved another chunk of the designers docs
2023-02-06 14:55:07 +01:00
Simon Wisselink
833ba57d42
WIP improving the docs
2023-02-06 14:53:25 +01:00
Simon Wisselink
15d3968114
fixes to docs
2023-02-06 14:50:24 +01:00
Simon Wisselink
badcae6e0c
Finished improving designers docs
2023-02-06 14:42:31 +01:00
Simon Wisselink
694ff1b733
Improved another chunk of the designers docs
2023-02-06 10:40:00 +01:00
Simon Wisselink
1e0d25638e
WIP improving the docs
2023-02-05 23:14:10 +01:00
Simon Wisselink
51ed0d6791
fixes to docs
2023-02-03 22:31:59 +01:00
Simon Wisselink
9c610e6e62
multiversion mkdocs config
2023-02-03 22:27:18 +01:00
Simon Wisselink
e6360694bf
Add mkdocs for docs
2023-02-03 17:54:00 +01:00
Simon Wisselink
5fdcb3c6fa
Fix error in docs on prepend/append. Fixes #818 .
2023-01-31 11:24:20 +01:00
Simon Wisselink
9e35cce3f8
Fix error in docs on prepend/append. Fixes #818 .
2023-01-31 11:23:50 +01:00
Simon Wisselink
016c9ceb17
Generated <script>
tags lo longer have deprecated type="text/javascript"
or language="Javascript"
attributes.
...
Fixes #815 .
2023-01-31 11:17:41 +01:00
Simon Wisselink
46dfed3837
Updated the changelog
2023-01-24 22:45:35 +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
Simon Wisselink
22ce23b47b
Made variable scoping more sensible
2023-01-11 11:22:24 +01:00
Simon Wisselink
fd64cc688a
Removed PHP functions and checks for the already removed php modifiers. Re-implemented functions as regular functions. Probably should compile these directly.
2023-01-07 23:06:47 +01:00
Simon Wisselink
608a400e66
Fix scoping / global state problems in tests by using DI in Default Extension. Also removing a bunch of old fashioned phpdoc annotations that are superseded by namespaces.
2023-01-05 23:07:45 +01:00
Simon Wisselink
576bd4cc01
Removed support for PHP include path, and removed the ::loadPlugin method.
2023-01-05 21:58:29 +01:00
Simon Wisselink
9766aba66e
filter tests passing
2023-01-03 14:12:36 +01:00
Simon Wisselink
60a56969dd
WIP moving Smarty to PSR-4.
2023-01-02 00:49:38 +01:00
Simon Wisselink
ab5705a90d
Rewrote all default modifiers and functions from the plugins folder to PSR-4 classes
2022-12-24 23:38:13 +01:00
Simon Wisselink
4d66910e7f
Entire src dir now PSR-4 compatible
2022-12-22 22:38:37 +01:00
Simon Wisselink
f1e7b2d46f
src/sysplugins/* to PSR-4
2022-12-22 21:50:01 +01:00
Simon Wisselink
0fc2b3726b
src/Template/* to PSR-4
2022-12-22 21:23:22 +01:00
Simon Wisselink
d0319bdc87
Replace Smarty:: with symfony/polyfill-mbstring
2022-12-01 21:56:12 +01:00
Simon Wisselink
e54a53332f
Removed autoload filters
2022-11-30 10:06:09 +01:00
Simon Wisselink
8b5540f4f3
More PSR4 rewriting
2022-11-30 00:25:27 +01:00
Simon Wisselink
91b6fdeb4e
WIP converting code to PSR-4
2022-11-28 12:30:07 +01:00
Progi1984
c016895166
PHP8.2 compatibility ( #775 )
...
* PHP8.2 compatibility
* PHP8.2 compatibility : Fixed unit tests
* PHP8.2 compatibility : Replace ENT_COMPAT by ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401
* PHP8.2 compatibility : Remove deprecated utf8_decode
* PHP8.2 compatibility : Remove HTML-ENTITIES parameter
* Removed some unused code for clarity, updated the changelog.
* More concise escape implementation and unit test to cover both modifierplugin and modifiercompiler.
* Fix htmlall unescape of quotes without mbstring too
Co-authored-by: Simon Wisselink <s.wisselink@iwink.nl >
2022-11-22 21:22:57 +01:00
Andrew Dawes
f81720941c
Fixed several typos and grammar errors ( #821 )
2022-10-22 22:08:38 +02:00
Simon Wisselink
254b5cabee
Dropped remaining references to removed PHP-support in Smarty 4 from docs, lexer and security class.
2022-09-27 12:21:01 +02:00
Simon Wisselink
f8e1ba76f7
Replaced outdated references to SMARTY_RESOURCE_CHAR_SET in docs with Smarty::$_CHARSET.
2022-06-15 22:12:38 +02:00
Thomas
0f098802c6
Create getting-started.md
2022-01-21 17:55:23 +01:00