RE: [PHP Template] Revised proposal

[email protected] ("Travis E. Sitzlar")
Newsgroups php.template
Message-ID <[email protected]>

>
> Handling unnknowns is planned via .ini or some other setting. It will
> either silently remove unknowns, loudly complain about them, or turn
> them into HTML comments.
>

This might be a dumb idea, but why not have an option to do an implicit
tpl_assign on unknowns?  I.e., if a block of code such as

	{if: $title != "foo"}
		<b>$title</b>
	{else:}
		<b>none</b>
	{/if:}

is encountered but there is no $title assigned, why not have a way of
auto-assigning $GLOBAL['title']?

Just a thought; seems that this could be a very good fallback feature for
simplicity...

Travis Sitzlar
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.