Commit Graph

140 Commits

Author SHA1 Message Date
Uwe.Tews
0fe0ad55c9 - allow bit operator '&' inside {if} tag
- implementation of ternary operator
2009-10-15 21:00:23 +00:00
Uwe.Tews
fb29f74f3d added missing file 2009-10-15 13:51:41 +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
526337aa23 - allow {block} tags inside included templates
- bugfix for resource plugins in Smarty2 format
- some optimizations of internal.template.php
2009-10-12 14:37:31 +00:00
Uwe.Tews
7afa8dce66 - fixed bug when template with same name is used with different data objects
- fixed bug with double quoted name attribute at {insert} tag
- reenabled assign_by_ref and append_by_ref methodes
2009-10-11 20:23:00 +00:00
Uwe.Tews
9eab32ff60 - removed block nesting checks for {capture} 2009-10-07 20:24:17 +00:00
Uwe.Tews
6869fa9a49 - bugfix on {insert} 2009-10-07 15:52:57 +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
9cc1533ac0 - update of README 2009-10-02 20:48:46 +00:00
Uwe.Tews
3c4b99ca34 -update of README 2009-10-02 15:30:32 +00:00
monte.ohrt
c4b46fe7c8 update for beta 2009-10-02 14:43:55 +00:00
Uwe.Tews
84a1428bf7 - removed default timezone setting 2009-10-01 17:09:49 +00:00
Uwe.Tews
c55e606278 - added missing file 2009-09-30 22:16:14 +00:00
Uwe.Tews
b85d0ca2db - Update of README 2009-09-30 22:06:46 +00:00
Uwe.Tews
898819dd2b - reactivated PHP resource for simple PHP templates. Must set allow_php_templates = true to enable
- {PHP} tag can be enabled by allow_php_tag = true
2009-09-30 22:03:41 +00:00
Uwe.Tews
25d4535be6 - fixed handling of template_exits methode for all resource types 2009-09-30 18:28:50 +00:00
Uwe.Tews
ed6df80a8f - bugfix for other cache resources than file 2009-09-30 16:00:11 +00:00
Uwe.Tews
26949347e2 - the methodes assign_by_ref is now wrapped to assign, append_by_ref to append
- allow arrays of variables pass in display, fetch and createTemplate calls
  $data = array('foo'=>'bar','foo2'=>'blar');
  $smarty->display('my.tpl',$data);
2009-09-29 22:58:54 +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
0fdcb79ec3 - allow $tpl->display(), $tpl->fetch(); and $tpl->is_cached() calls on template objects 2009-09-29 21:00:00 +00:00
Uwe.Tews
56e01e8a45 - allow Smarty2 and Smarty3 parameter ordering on display, fetch and create template 2009-09-29 20:36:29 +00:00
Uwe.Tews
3ab56b041e - bugfix on <?php ?> tags 2009-09-29 18:52:58 +00:00
Uwe.Tews
6a5f07a1ad - lexer fix for multiline <?php ...?> tags 2009-09-29 17:17:41 +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
441c1aa978 - update of $smarty->test() methode 2009-09-26 10:38:24 +00:00
Uwe.Tews
d2aeb81188 - bugfix on {section} tag 2009-09-26 10:32:36 +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
5bf063d2cc - fixed error in is_cached 2009-09-20 02:02:44 +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
1c30387c96 - update extend resource 2009-09-11 18:59:48 +00:00
Uwe.Tews
b360c7cb5b - bugfix {extend} tag
- bugfix of automatic literals
2009-09-11 15:11:21 +00:00
Uwe.Tews
6c5c0a156e - bugfix for very large {block} tag content 2009-09-10 23:08:06 +00:00
Uwe.Tews
11a748a6e9 - removed var_dump 2009-09-08 18:58:15 +00:00
Uwe.Tews
62061b73e2 - bugfix on clear_cache() 2009-09-08 18:54:22 +00:00
Uwe.Tews
1cdb112388 - bugfix 2009-09-01 22:04:30 +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
a13ae6628c - Fix on line breaks inside {if} tags 2009-08-28 18:32:31 +00:00
Uwe.Tews
8c48521260 - fixed wrong case at require_once 2009-08-27 16:02:44 +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
e759f76661 - bugfix - the output of plugins was not cached
- added global variable SCRIPT_NAME
2009-08-24 19:26:31 +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
c12c6d9471 2009-08-18 18:43:06 +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