Commit Graph

3825 Commits

Author SHA1 Message Date
Uwe Tews
f236905fed create different compiled templates and config files
Smarty does now automatically detect a change of the $merge_compiled_includes and $escape_html
    property and create different compiled templates files depending on the setting.

    Same applies to config files and the $config_overwrite, $config_booleanize and
    $config_read_hidden properties.
2015-01-03 07:36:07 +01:00
Uwe Tews
cfdd53c6b4 restructure config file processing
move code into an extension class
use Smarty_Internal_Template
2015-01-02 22:30:53 +01:00
Uwe Tews
75ad0b4da5 move default template handling into an extesion class 2015-01-02 10:48:07 +01:00
Uwe Tews
15728f6ea3 normalize directory path 2015-01-02 10:22:36 +01:00
Uwe Tews
c8712b8b7e update autoloader 2015-01-02 09:12:27 +01:00
Uwe Tews
0a3579f9ca restructure template processing
Code was moved into classes it better belongs to.
This does reduce also Smarty's memory footprint
2015-01-02 09:12:01 +01:00
Uwe Tews
8c1f400c09 remove \r from template source before compiling 2015-01-02 08:25:27 +01:00
Uwe Tews
97e7948e16 fix update of file dependency 2015-01-02 08:20:57 +01:00
Uwe Tews
6f801de283 update buildFilepath() 2015-01-02 06:29:08 +01:00
Uwe Tews
c55367d1f6 update buildFilepath() 2015-01-02 06:26:04 +01:00
Uwe Tews
296a88b557 Change class name case because of composer autoloader problems 2015-01-02 06:07:19 +01:00
Uwe Tews
3f08b18170 Correct recompiled check 2015-01-02 01:05:03 +01:00
Uwe Tews
48f66c81c7 rework class Smarty_Template_Cached
- move class Smarty_Template_Cached in its own file
- implement all code for chached template handling in class
2015-01-01 23:53:59 +01:00
Uwe Tews
c3aa9994c8 rework source resource handling
- move class Smarty_Template_Source into its own file
- impelement all source processing into the classes it better belongs to
2015-01-01 23:34:29 +01:00
Uwe Tews
dd2d24d1d6 rework class Smarty_Template_Compiled
- move class Smarty_Template_Compiled in its own file
- implement all code for compiled template handling in class
2015-01-01 23:28:09 +01:00
Uwe Tews
7c4e5175a4 rework class Smarty_Template_Compiled
- move class Smarty_Template_Compiled in its own file
- implement all code for compiled template handling in class (reverted from commit f6a1349fdb)
2015-01-01 23:15:08 +01:00
Uwe Tews
f6a1349fdb rework class Smarty_Template_Compiled
- move class Smarty_Template_Compiled in its own file
- implement all code for compiled template handling in class
2015-01-01 23:11:35 +01:00
Uwe Tews
80bf76cc6e move internal createTemplateCodeFrame() method into an extension class 2015-01-01 22:59:07 +01:00
Uwe Tews
e8a77171d3 implement templateId generation as method 2015-01-01 22:27:45 +01:00
Uwe Tews
2f8d4f1dbf missing property 2014-12-31 16:08:36 +01:00
Uwe Tews
0cb8b24055 implement most common stetters as method for better performance 2014-12-31 15:56:59 +01:00
Uwe Tews
b013984dfd move properties into classes where they better belong to 2014-12-31 15:44:08 +01:00
Uwe Tews
2687f36849 update autoloader with for special class names 2014-12-31 14:32:47 +01:00
Uwe Tews
47faa63a0e use function_exists('mb_get_info') for setting Smarty::$_MBSTRING
Function mb_split could be overloaded depending on php.ini mbstring.func_overload
2014-12-31 06:07:17 +01:00
Uwe Tews
4b7fba4d88 get config properties via compiler object
- reverting part of earlier change of today
2014-12-30 18:16:51 +01:00
Uwe Tews
e351c0123f move some code into Smarty_Internal_Debug class
where it better belongs to
2014-12-30 17:17:15 +01:00
Uwe Tews
d3e26fb679 template function call handling 2014-12-30 16:43:42 +01:00
Uwe Tews
1d248d6349 formatting 2014-12-30 16:28:18 +01:00
Uwe Tews
8fe6f14af7 Change class name case because of composer autoloader problems 2014-12-30 16:27:08 +01:00
Uwe Tews
b122878131 rename parse tree class names and minor fixes 2014-12-30 16:22:03 +01:00
Uwe Tews
825ccc9f47 rename parse tree class names to Smarty_Internal_ParseTree.... 2014-12-30 16:16:54 +01:00
Uwe Tews
485f093e0b get config properties via template object 2014-12-30 16:03:21 +01:00
Uwe Tews
6be6bf7b70 limit the template nesting level by security 2014-12-30 12:57:43 +01:00
Uwe Tews
1da50aa61d security can now disable special $smarty variables
see also NEW_FEATURES.txt
2014-12-29 21:59:23 +01:00
Uwe Tews
49a3427515 clear internal _is_file_cache when plugins_dir was modified 2014-12-27 23:06:04 +01:00
Uwe Tews
5e4f55d121 add .plex and .y files
add lexer .plex and parser .y files to distribution for easier version
control
2014-12-14 00:49:42 +01:00
Uwe Tews
46654268ef update .gitignore 2014-12-14 00:44:11 +01:00
Uwe Tews
2fb5bc6bbe lexer and parser optimizations
up to 30% higher compiling speed depending on template complexity
2014-12-13 23:02:29 +01:00
Uwe Tews
2fe60e8996 resolve parser ambiguity
- bugfix resolve parser ambiguity between constant print tag {CONST} and
other smarty tags after change of 09.12.2014
2014-12-11 05:21:21 +01:00
Smarty PHP Template Engine
042e93c725 Merge pull request #12 from jenolan/master
Commit 7b2a2c4a88 changed the constant pro...
2014-12-11 03:11:19 +01:00
Larry Lewis
7bb7b3ac03 Commit 7b2a2c4a88 changed the constant processing to allow a variable in teh $smarty.const but this broke the normal callout. Change allows both methods. 2014-12-11 08:06:27 +11:00
Uwe Tews
2a2a73cabc - bugfix call of template function by a variable name
did not work after latest changes (forum 25342)
2014-12-10 00:51:09 +01:00
Uwe Tews
7bd40d2c0b - bugfix variables $null, $true and $false did not work
after the change of 12.11.2014 (forum 25342)
2014-12-09 23:33:11 +01:00
Uwe Tews
ffbfe40043 - bugfix a plugin with attached modifier could fail
if the tag was immediately followed by another Smarty tag (since 3.1.21) (forum 25326)
2014-11-23 13:25:09 +01:00
Uwe Tews
de7310b702 Revert "delete unwanted file"
This reverts commit 77d8349ffb.
2014-11-13 19:52:41 +01:00
Uwe Tews
77d8349ffb delete unwanted file 2014-11-13 19:48:34 +01:00
Uwe Tews
0b6af0add7 move autoload code into Autoloader.php.
Use Composer autoloader when possible
2014-11-13 19:42:01 +01:00
Uwe Tews
0b21213c55 new feature - added support of namespaces to template code 2014-11-12 19:07:00 +01:00
Uwe Tews
c7e8881c76 bugfix for recent changes of {function} tag handling 2014-11-11 01:01:01 +01:00
Uwe Tews
9ecbb93ebb update of the $smarty->merge_compiled_includes option 2014-11-11 00:03:08 +01:00