Commit Graph

36 Commits

Author SHA1 Message Date
Uwe.Tews
ed6df80a8f - bugfix for other cache resources than file 2009-09-30 16:00:11 +00:00
Uwe.Tews
0fdcb79ec3 - allow $tpl->display(), $tpl->fetch(); and $tpl->is_cached() calls on template objects 2009-09-29 21:00:00 +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
324276f7fa - improvements and bugfix on {include} tag handling
******************************************************************
NOTICE: existing compiled template and cache files must be deleted
******************************************************************
2009-09-23 16:50:16 +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
5563fc9fd5 - dropped nl2br as plugin
- added '<>' as comparission operator in {if} tags
- cached caching_lifetime property to cache_liftime for backward compatibility with Smarty2.
  {include} optional attribute is also now cache_lifetime
- fixed trigger_error methode (moved into Smarty class)
- version is now  Beta!!!
2009-09-01 21:11:42 +00:00
Uwe.Tews
45ba48f2b6 - some speed optimizations on loading internal plugins 2009-08-30 18:10:01 +00:00
monte.ohrt
770ef89611 remove built-in exception handling, add DS as shorthand to DIRECTORY_SEPARATOR 2009-08-29 22:57:29 +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
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
d2d8c8925b - removed all internal calls of Smarty::instance()
- fixed code in double quoted strings
2009-08-08 17:28:23 +00:00
Uwe.Tews
0c7113d98e 2009-07-21 17:41:16 +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
0a64988240 - fixed bug of {nocache} tag in included templates 2009-05-08 11:34:21 +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
5bbc44f35d - functions defined with the {function} tag now always have global scope 2009-04-30 17:39:17 +00:00
Uwe.Tews
d7093433ae - fixed problem with directory setter methodes 2009-04-29 17:56:56 +00:00
Uwe.Tews
c724b720be - added trusted stream checking to security
- internal changes at file dependency check for caching
2009-04-26 16:56:17 +00:00
Uwe.Tews
e315782819 - added new {template} tag 2009-04-24 19:59:51 +00:00
Uwe.Tews
1ee0747801 - fixed access of special smarty variables from included template 2009-04-23 13:32:45 +00:00
Uwe.Tews
d991f96423 - unified template stream syntax with standard Smarty resource syntax $smarty->display('mystream:mytemplate') 2009-04-21 22:09:17 +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
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
139b3d4570 - fixed scope problem with parent variables when appending variables within templates.
- fixed code for {block} without childs (possible sources for notice errors removed)
2009-04-12 22:26:02 +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
066467ca82 - implementation of a 'variable' filter as replacement for default modifier
- update of unregister_....filter methods
2009-04-10 01:15:53 +00:00
Uwe.Tews
9b41308bf6 - changed variable scopes to SMARTY_LOCAL_SCOPE, SMARTY_PARENT_SCOPE, SMARTY_ROOT_SCOPE to avoid possible conflicts with user constants
- Smarty variable global attribute replaced with scope attribute
2009-04-07 16:22:31 +00:00
Uwe.Tews
0ab30877db - variable scopes LOCAL_SCOPE, PARENT_SCOPE, ROOT_SCOPE
- more getter/setter methodes
2009-04-06 02:53:09 +00:00
Uwe.Tews
45e2a5f0d6 - make output of template default handlers cachable 2009-04-04 19:07:42 +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
25e4ef7fb9 - bugfix smarty.class and internal.security_handler
- added compile_check configuration 
- added all setter/getter methodes
2009-03-31 14:20:10 +00:00
Uwe.Tews
c9bbd7e834 - added all major setter/getter methodes 2009-03-30 17:05:37 +00:00
Uwe.Tews
590029c092 - code optimization at crc32 hash computation 2009-03-29 13:13:33 +00:00
Uwe.Tews
8a8766b0bd - added extend resource 2009-03-27 15:31:47 +00:00
monte.ohrt
dcaa96a9f8 rearrange things into distribution and development directories 2009-03-22 16:09:05 +00:00