CVS commits: newlines and core funcs
| From: | Monte Ohrt | Date: | Mon, 16 Jun 2003 15:28:19 +0000 |
| Subject: | CVS commits: newlines and core funcs | ||
| Groups: | php.smarty.dev | ||
| Request: | Send a blank email to php-smarty-dev+get-1593@lists.php.net to get a copy of this message | ||
A couple commits this morning:
1) newlines are now eaten by template tags that do not create output. So
something like this:
TEST
{* Smarty comment *}
{config_load file="test.conf"}
{if $foo}
BAR1
{else}
BAR2
{/if}
TEST
should output:
TEST
BAR1
TEST
2) core functions have been removed from the plugin directory and moved
to their own "core" directory under SMARTY_DIR. After testing this it
became evident that the core funcs do not belong in the plugin directory
in the first place... plugin directories can be very application
specific, so core files should stay with the library files under
SMARTY_DIR. This also skips the _execute_core_function() indirection,
only needing a require_once(), followed by the function call.
now onto config_load issues...
Monte