diff --git a/FAQ b/FAQ index 956fe8fd..d7e4889d 100644 --- a/FAQ +++ b/FAQ @@ -116,3 +116,7 @@ A: There seems to be a problem with some W2k machines and exclusive file locking. Comment out the flock() call in _write_file to get around this, although be aware this could possibly cause a problem with simultaneous writes to a file, especially with caching turned on. + +Q: The template goes into an infinite loop when I include included templates + that pass local variables +A: This was fixed in 1.3.2 (new global attribute) diff --git a/NEWS b/NEWS index e1516310..17f208f4 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,5 @@ +Version 1.3.2 +------------- - fixed a bug that caused some nested includes to loop infinitely. (Andrei) - added optional HTML header to output. (Monte) - significantly improved config_load performance. (Andrei) diff --git a/README b/README index c3a2ceb4..aad3ffe1 100644 --- a/README +++ b/README @@ -2,7 +2,7 @@ NAME: Smarty - the PHP compiling template engine -VERSION: 1.3.1pl1 +VERSION: 1.3.2 AUTHORS: diff --git a/Smarty.addons.php b/Smarty.addons.php index 66ff1618..4a81bf53 100644 --- a/Smarty.addons.php +++ b/Smarty.addons.php @@ -4,7 +4,7 @@ * File: Smarty.addons.php * Author: Monte Ohrt * Andrei Zmievski - * Version: 1.3.1pl1 + * Version: 1.3.2 * Copyright: 2001 ispi of Lincoln, Inc. * * This library is free software; you can redistribute it and/or diff --git a/Smarty.class.php b/Smarty.class.php index 2a4c9376..dc175acd 100644 --- a/Smarty.class.php +++ b/Smarty.class.php @@ -5,7 +5,7 @@ * Author: Monte Ohrt * Andrei Zmievski * - * Version: 1.3.1pl1 + * Version: 1.3.2 * Copyright: 2001 ispi of Lincoln, Inc. * * This library is free software; you can redistribute it and/or @@ -108,7 +108,7 @@ class Smarty ); - var $version = "1.3.1pl1"; // Smarty version number + var $version = "1.3.2"; // Smarty version number var $show_info_header = true; // display info header at top of page output // internal vars diff --git a/Smarty_Compiler.class.php b/Smarty_Compiler.class.php index d9f8d4e6..a736af5a 100644 --- a/Smarty_Compiler.class.php +++ b/Smarty_Compiler.class.php @@ -6,7 +6,7 @@ * Author: Monte Ohrt * Andrei Zmievski * - * Version: 1.3.1pl1 + * Version: 1.3.2 * Copyright: 2001 ispi of Lincoln, Inc. * * This library is free software; you can redistribute it and/or diff --git a/docs.sgml b/docs.sgml index 2b313c4e..208fe95b 100644 --- a/docs.sgml +++ b/docs.sgml @@ -425,6 +425,19 @@ chmod 700 cache Smarty.addons.php. + + $version + + Current version of Smarty, used in info header. + + + + $show_info_header + + Shows an HTML comment at the beginning of the templates output, + displaying smarty version and date generated. Default is true. + + @@ -2849,12 +2862,99 @@ OUTPUT: capitalize -{* this displays a variable, unmodified *} +{$articleTitle} {$articleTitle|capitalize} OUTPUT: -POLICE BEGIN CAMPAIGN TO RUNDOWN JAYWALKERS +Police begin campaign to rundown jaywalkers. +Police Begin Campaign To Rundown Jaywalkers. + + + + + + count_characters + + This is used to count the number of characters in a variable. + + +count_characters + + + +{$articleTitle} +{$articleTitle|count_characters} + +OUTPUT: + +Cold Wave Linked to Temperatures +32 + + + + + + count_paragraphs + + This is used to count the number of paragraphs in a variable. + + +count_paragraphs + + + +{$articleTitle} +{$articleTitle|count_paragraphs} + +OUTPUT: + +War Dims Hope for Peace. Child's Death Ruins Couple's Holiday. + +Man is Fatally Slain. Death Causes Loneliness, Feeling of Isolation. +2 + + + + + + count_sentences + + This is used to count the number of sentences in a variable. + + +count_sentences + + + +{$articleTitle} +{$articleTitle|count_sentences} + +OUTPUT: + +Two Soviet Ships Collide - One Dies. Enraged Cow Injures Farmer with Axe. +2 + + + + + + count_words + + This is used to count the number of words in a variable. + + +count_words + + + +{$articleTitle} +{$articleTitle|count_words} + +OUTPUT: + +Dealers Will Hear Car Talk at Noon. +7 diff --git a/libs/Smarty.class.php b/libs/Smarty.class.php index 2a4c9376..dc175acd 100644 --- a/libs/Smarty.class.php +++ b/libs/Smarty.class.php @@ -5,7 +5,7 @@ * Author: Monte Ohrt * Andrei Zmievski * - * Version: 1.3.1pl1 + * Version: 1.3.2 * Copyright: 2001 ispi of Lincoln, Inc. * * This library is free software; you can redistribute it and/or @@ -108,7 +108,7 @@ class Smarty ); - var $version = "1.3.1pl1"; // Smarty version number + var $version = "1.3.2"; // Smarty version number var $show_info_header = true; // display info header at top of page output // internal vars diff --git a/libs/Smarty_Compiler.class.php b/libs/Smarty_Compiler.class.php index d9f8d4e6..a736af5a 100644 --- a/libs/Smarty_Compiler.class.php +++ b/libs/Smarty_Compiler.class.php @@ -6,7 +6,7 @@ * Author: Monte Ohrt * Andrei Zmievski * - * Version: 1.3.1pl1 + * Version: 1.3.2 * Copyright: 2001 ispi of Lincoln, Inc. * * This library is free software; you can redistribute it and/or