Commit Graph

52 Commits

Author SHA1 Message Date
Uwe.Tews
60d1a30791 - fixed nocache variable inside if condition of {if} tag 2009-10-21 18:26:14 +00:00
Uwe.Tews
5fe16d23f0 - fixed file dependency for config files
- some code optimizations
2009-10-21 15:19:00 +00:00
Uwe.Tews
4a68612a5a - added {$foo++}{$foo--} syntax
- buxfix changed PHP "if (..):" to "if (..){" because of possible bad code when concenating PHP tags
- autoload Smarty internal classes
2009-10-21 09:49:43 +00:00
Uwe.Tews
dc592e5a44 - check at compile time for variable filter to improve rendering speed if no filter is used
- fixed bug at combination of {elseif} tag and {...} in double quoted strings of static class parameter
2009-10-20 17:09:22 +00:00
Uwe.Tews
fad5c12f3a - fixed compiled template merging on variable double quoted strings as name 2009-10-19 20:25:47 +00:00
Uwe.Tews
88229447d1 - fixed modifier support on block tags 2009-10-19 14:36:57 +00:00
Uwe.Tews
b8837aecba - parser bugfix on array access 2009-10-16 16:54:25 +00:00
Uwe.Tews
0fe0ad55c9 - allow bit operator '&' inside {if} tag
- implementation of ternary operator
2009-10-15 21:00:23 +00:00
Uwe.Tews
5be5d4cf28 - do not recompile evaluated templates if reused just with other data
- recompile config files when config properties did change
- some lexer/parser otimizations
2009-10-13 19:44:38 +00:00
Uwe.Tews
e62d6baa2a - added support of "isinstance" to {if} tag
- bugfix in PHP resource
2009-10-05 18:55:22 +00:00
Uwe.Tews
585c115c94 - internal changes to improve performance
- fix registering of filters for classes
2009-10-04 18:12:30 +00:00
Uwe.Tews
8387d1ef6f - enabled short boolean attributes {some attr} equala {some attr=true} 2009-09-29 21:40:30 +00:00
Uwe.Tews
3ab56b041e - bugfix on <?php ?> tags 2009-09-29 18:52:58 +00:00
Uwe.Tews
1af2723de9 - changed {php} tag handling
- removed support of Smarty::instance()
- removed support of PHP resource type
- improved execution speed of {foreach} tags
- fixed bug in {section} tag
2009-09-29 16:23:35 +00:00
Uwe.Tews
4faa5eff33 - reload of {section} tag fix 2009-09-27 17:58:33 +00:00
Uwe.Tews
97278555f7 - bugfix for {literal} tag inside comment 2009-09-26 23:06:57 +00:00
Uwe.Tews
d2aeb81188 - bugfix on {section} tag 2009-09-26 10:32:36 +00:00
Uwe.Tews
0e68cdd9d2 - replace internal "eval()" calls by "include" during rendering process
- speed improvment for templates which have included subtemplates
    the compiled code of included templates is merged into the compiled code of the parent template
- added logical operator "xor" for {if} tag
- changed parameter ordering for Smarty2 BC
    fetch($template, $cache_id = null, $compile_id = null, $parent = null)
    display($template, $cache_id = null, $compile_id = null, $parent = null)
    createTemplate($template, $cache_id = null, $compile_id = null, $parent = null)
- property resource_char_set is now replaced by constant SMARTY_RESOURCE_CHAR_SET
- fixed handling of classes in registered blocks
- speed improvement of lexer on text sections
2009-09-19 13:22:32 +00:00
Uwe.Tews
bfefb8e017 - implemented caching of registered Resources
- new property 'auto_literal'. if true(default)  '{ ' and ' }' interpreted as literal, not as Smarty delimiter
2009-08-29 16:29:52 +00:00
Uwe.Tews
a13ae6628c - Fix on line breaks inside {if} tags 2009-08-28 18:32:31 +00:00
Uwe.Tews
4331452b8e - implemented registered resources as in Smarty2. NOTE: caching does not work yet
- new property 'force_cache'. if true it forces the creation of a new cache file
- fixed modifiers on arrays
- some speed optimization on loading internal classes
2009-08-27 14:59:28 +00:00
Uwe.Tews
b688c24976 - fixed typo in lexer definition for '!==' operator 2009-08-24 15:31:31 +00:00
Uwe.Tews
5fce224f8d - fixed problems whitespace in conjunction with custom delimiters
- Smarty tags can now be used as value anywhere
2009-08-21 14:50:34 +00:00
Uwe.Tews
eef7400f55 - definition of template class name moded in internal.templatebase.php
- whitespace parser changes
2009-08-18 16:53:33 +00:00
Uwe.Tews
6e9350f7c7 - fixed parser problems 2009-08-12 16:43:37 +00:00
Uwe.Tews
9fecdb57b8 - fixed parser problems with custom delimiter 2009-08-11 18:53:23 +00:00
Uwe.Tews
d2d8c8925b - removed all internal calls of Smarty::instance()
- fixed code in double quoted strings
2009-08-08 17:28:23 +00:00
Uwe.Tews
fc9b7eef10 - bugfix of \n.\t etc in double quoted strings 2009-08-05 19:41:49 +00:00
Uwe.Tews
83cc212060 - added syntax for variable config vars like #$foo# 2009-07-29 16:43:54 +00:00
Uwe.Tews
85998e3fca - fixed parsing of $smarty.session vars containing objects 2009-07-28 19:26:56 +00:00
Uwe.Tews
21659a76e8 - fix of "$" handling indouble quoted strings 2009-07-22 16:22:24 +00:00
Uwe.Tews
ce9a656829 - allow smarty tags within xml tags
- PHPunit update
2009-06-14 13:08:13 +00:00
Uwe.Tews
1084678645 - fixed directory separator handling 2009-05-14 10:53:28 +00:00
Uwe.Tews
bd6b49ee1e - syntax change for stream variables 2009-05-09 12:44:43 +00:00
Uwe.Tews
d7a8731ac9 - fixed E_STRICT incompabilities
- {function} tag bug fix 
- security policy definitions have been moved from plugins folder to file Security.class.php in libs folder
- added allow_super_global configuration to security
2009-05-05 17:19:33 +00:00
Uwe.Tews
4c794a3d70 - the {function} tag can no longer overwrite standard smarty tags
- inherit functions defined by the {fuction} tag into subtemplates
- added {while <statement>} sytax to while tag
2009-04-28 15:37:13 +00:00
Uwe.Tews
453d8a23da - change of new style syntax for forach. Now: {foreach $array as $var} like in PHP 2009-04-21 18:02:34 +00:00
Uwe.Tews
380cb27945 - fixed "$foo.bar ..." variable replacement in double quoted strings 2009-04-20 20:33:14 +00:00
Uwe.Tews
152cedb75c - added stream resources ($smarty->display('mystream://mytemplate'))
- added stream variables  {$mystream:myvar}
2009-04-18 14:46:29 +00:00
Uwe.Tews
24e3218d28 - added {if 'expression' is in 'array'} syntax 2009-04-14 12:41:07 +00:00
Uwe.Tews
04fc33b99a - fixed append/prepend attributes in {block} tag
- added  {if  'expression' is in 'array'}  syntax
- use crc32 as hash for compiled config files.
2009-04-14 09:04:15 +00:00
Uwe.Tews
1262b7d873 - parser update 2009-04-10 14:31:23 +00:00
Uwe.Tews
eace27e2b6 - added global variable scope SMARTY_GLOBAL_SCOPE
- enable 'variable' filter by default
2009-04-10 12:33:51 +00:00
Uwe.Tews
a424da0671 - syntax corrections on variable object property 2009-04-09 17:43:32 +00:00
Uwe.Tews
57d190e997 - compile the always the content of {block} tags to make shure that the filters are running over it
- syntax corrections on variable object property
- syntax corrections on array access in dot syntax
2009-04-09 15:53:52 +00:00
Uwe.Tews
8bcd6514b5 - allow variable object property 2009-04-08 14:47:28 +00:00
Uwe.Tews
827e9b08d8 - added append array for short form of assign {$foo[]='bar'} and allow assignments to nested arrays {$foo['bla']['blue']='bar'} 2009-04-05 14:49:27 +00:00
Uwe.Tews
3c5f0d56d3 - added registerDefaultTemplateHandler methode and functionallity
- added registerDefaultPluginHandler methode and functionallity
- added {append} tag to extend Smarty array variabled
2009-04-03 15:59:40 +00:00
Uwe.Tews
9f95d63ab7 - parser fix 2009-03-26 15:36:01 +00:00
Uwe.Tews
526d5e0388 - fixed parser not to create error on word in double quoted strings
- allow PHP  array(...)
2009-03-26 14:08:43 +00:00