PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » HTML » HTML_Template_Flexy » Bug #1351

Complex arguments

Details

Request #1351Complex arguments
Submitted2004-05-06 08:28 UTC
Frommclap at rrf dot ru
StatusVerified
PackageHTML_Template_Flexy
PHP Version4.3.2
OSFreeBSD
Roadmaps(Not assigned)

Comments

[2004-05-06 08:28 UTC] mclap at rrf dot ru

Description:
------------
It would be wonderful, if the Flexy is able to do folowing things:

1. Complex arguments
{method(#some#,var.get(#data#)}

and

flexy:if="method(#some#,var.get(#data#)}" in html tags.

2. Escaping of #
Sometimes it's necessary to pass '#' symbol as argument.

Thank you in advance.

[2006-06-22 10:22 UTC] jan at motubo dot com

i need something like:

{if:isEqual(getTotalPages(),#1#)}

Got error "...on Line 0 Position:13: unexpected something: (g) character: 0x67".

But: {if:isEqual(someVariable,#1#)} works fine...also alan's tipp with addional {} around getTotalPages() did not work: then the if is calculated once when compiling - not always. so the result will be always true or always false - unless you set "forceCompile=1"