<?xml version="1.0"?>
<?xml-stylesheet
href="http://www.w3.org/2000/08/w3c-synd/style.css" type="text/css"
?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel rdf:about="http://pear.php.net/bugs/search.php">
    <title>PEAR Bug Search Results</title>
    <link>http://pear.php.net/bugs/search.php?cmd=display&amp;package_name%5B0%5D=HTML_Template_Flexy</link>
    <description>Search Results</description>
    <dc:language>en-us</dc:language>
    <dc:creator>pear-webmaster@lists.php.net</dc:creator>
    <dc:publisher>pear-webmaster@lists.php.net</dc:publisher>
    <admin:generatorAgent rdf:resource="http://pear.php.net/bugs"/>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>
    <items>
     <rdf:Seq>
      <rdf:li rdf:resource="http://pear.php.net/bug/15946" />
      <rdf:li rdf:resource="http://pear.php.net/bug/15291" />
      <rdf:li rdf:resource="http://pear.php.net/bug/14894" />
      <rdf:li rdf:resource="http://pear.php.net/bug/14035" />
      <rdf:li rdf:resource="http://pear.php.net/bug/13396" />
      <rdf:li rdf:resource="http://pear.php.net/bug/13028" />
      <rdf:li rdf:resource="http://pear.php.net/bug/12686" />
      <rdf:li rdf:resource="http://pear.php.net/bug/12515" />
      <rdf:li rdf:resource="http://pear.php.net/bug/10830" />
      <rdf:li rdf:resource="http://pear.php.net/bug/10248" />
      <rdf:li rdf:resource="http://pear.php.net/bug/10123" />
      <rdf:li rdf:resource="http://pear.php.net/bug/8064" />
      <rdf:li rdf:resource="http://pear.php.net/bug/6799" />
      <rdf:li rdf:resource="http://pear.php.net/bug/4405" />
      <rdf:li rdf:resource="http://pear.php.net/bug/4298" />
      <rdf:li rdf:resource="http://pear.php.net/bug/3024" />
      <rdf:li rdf:resource="http://pear.php.net/bug/2997" />
      <rdf:li rdf:resource="http://pear.php.net/bug/2655" />
      <rdf:li rdf:resource="http://pear.php.net/bug/2258" />
      <rdf:li rdf:resource="http://pear.php.net/bug/1974" />
      <rdf:li rdf:resource="http://pear.php.net/bug/1351" />
      <rdf:li rdf:resource="http://pear.php.net/bug/1247" />
      <rdf:li rdf:resource="http://pear.php.net/bug/1138" />

     </rdf:Seq>
    </items>
  </channel>

  <image rdf:about="http://pear.php.net/gifs/pearsmall.gif">
    <title>PEAR Bugs</title>
    <url>http://pear.php.net/gifs/pearsmall.gif</url>
    <link>http://pear.php.net/bugs</link>
  </image>

    <item rdf:about="http://pear.php.net/bug/15946">
      <title>HTML_Template_Flexy: Feature/Change Request 15946 [Analyzed] Proposal: multiple purpose templates by extending flexy:start attribute</title>
      <link>http://pear.php.net/bugs/15946</link>
      <content:encoded><![CDATA[<pre>HTML_Template_Flexy Feature/Change Request
Reported by panamajo
2009-02-26T01:19:27+00:00
PHP: Irrelevant OS: irrelevant Package Version: 

Description:
------------
      The flexy:start=&quot;here&quot; syntax should be expanded in a way 
that &quot;here&quot;
could be replaced by any unique identifier.
By doing so, a single HTML template file could work for several 
HTML_Template_Flexy objects, which would ease changes of the 
template (multiple changes in one file instead of several ones).

Which flexy:start= attribute is relevant for the which Flexy object can 
be resolved by an additional option param (eg. 'start' =&gt; 'nothere'). Of 
course, nesting  flexy:start won't be allowed. 

For the cache files, the identifier should be appended to the filename in 
order to keep the files unique.


Test script:
---------------
      Just an example:

&lt;html&gt;
 ...
&lt;form flexy:start=&quot;localeselect&quot; name=&quot;locale&quot;&gt;
  &lt;select name=&quot;locale&quot;&gt;
    &lt;option flexy:foreach=&quot;locales,key,row&quot; value=&quot;{key}&quot;&gt;{row}&lt;/option&gt;
  &lt;/select&gt;
&lt;/form&gt;

...

&lt;div flexy:start=&quot;content&quot;&gt;
  &lt;h1&gt;{header}&lt;/h1&gt;
  &lt;p&gt;{msg}&lt;/p&gt;
  by {author}
&lt;/div&gt;
...
&lt;/html&gt;

Would be the structure of such a multi template, working for both localeselect and content.


Expected result:
----------------
      

Actual result:
--------------</pre>]]></content:encoded>
      <description><![CDATA[<pre>HTML_Template_Flexy Feature/Change Request
Reported by panamajo
2009-02-26T01:19:27+00:00
PHP: Irrelevant OS: irrelevant Package Version: 

Description:
------------
      The flexy:start=&quot;here&quot; syntax should be expanded in a way 
that &quot;here&quot;
could be replaced by any unique identifier.
By doing so, a single HTML template file could work for several 
HTML_Template_Flexy objects, which would ease changes of the 
template (multiple changes in one file instead of several ones).

Which flexy:start= attribute is relevant for the which Flexy object can 
be resolved by an additional option param (eg. 'start' =&gt; 'nothere'). Of 
course, nesting  flexy:start won't be allowed. 

For the cache files, the identifier should be appended to the filename in 
order to keep the files unique.


Test script:
---------------
      Just an example:

&lt;html&gt;
 ...
&lt;form flexy:start=&quot;localeselect&quot; name=&quot;locale&quot;&gt;
  &lt;select name=&quot;locale&quot;&gt;
    &lt;option flexy:foreach=&quot;locales,key,row&quot; value=&quot;{key}&quot;&gt;{row}&lt;/option&gt;
  &lt;/select&gt;
&lt;/form&gt;

...

&lt;div flexy:start=&quot;content&quot;&gt;
  &lt;h1&gt;{header}&lt;/h1&gt;
  &lt;p&gt;{msg}&lt;/p&gt;
  by {author}
&lt;/div&gt;
...
&lt;/html&gt;

Would be the structure of such a multi template, working for both localeselect and content.


Expected result:
----------------
      

Actual result:
--------------</pre>]]></description>
      <dc:date>2009-03-02T12:51:36+00:00</dc:date>
      <dc:creator>jo &amp;#x61;&amp;#116; feuersee &amp;#x64;&amp;#111;&amp;#x74; de</dc:creator>
      <dc:subject>HTML_Template_Flexy Feature/Change Request</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/15291">
      <title>HTML_Template_Flexy: Feature/Change Request 15291 [Analyzed] Test results vs short open tags (parse error)</title>
      <link>http://pear.php.net/bugs/15291</link>
      <content:encoded><![CDATA[<pre>HTML_Template_Flexy Feature/Change Request
Reported by doconnor
2008-12-10T21:45:34+00:00
PHP: 5.2.6 OS:  Package Version: CVS

Description:
------------
Parse error: syntax error, unexpected '}' in /home/clockwerx/pear/HTML_Template_Flexy/tests/results1/raw_php.html.en.php on line 4

Short open tags :(</pre>]]></content:encoded>
      <description><![CDATA[<pre>HTML_Template_Flexy Feature/Change Request
Reported by doconnor
2008-12-10T21:45:34+00:00
PHP: 5.2.6 OS:  Package Version: CVS

Description:
------------
Parse error: syntax error, unexpected '}' in /home/clockwerx/pear/HTML_Template_Flexy/tests/results1/raw_php.html.en.php on line 4

Short open tags :(</pre>]]></description>
      <dc:date>2009-03-02T12:53:57+00:00</dc:date>
      <dc:creator>daniel &amp;#x64;&amp;#111;&amp;#x74; oconnor &amp;#x61;&amp;#116; gmail &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>HTML_Template_Flexy Feature/Change Request</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/14894">
      <title>HTML_Template_Flexy: Feature/Change Request 14894 [Analyzed] Regression: Test for Bug #2959 is broken</title>
      <link>http://pear.php.net/bugs/14894</link>
      <content:encoded><![CDATA[<pre>HTML_Template_Flexy Feature/Change Request
Reported by doconnor
2008-10-27T05:46:10+00:00
PHP: 5.2.4 OS:  Package Version: CVS

Description:
------------
Could not find Template bug_2959.html in any of the directories

Test script:
---------------
pear run-tests

Expected result:
----------------
Test runs

Actual result:
--------------
003+ ===Compile failure==

004- 

004+ [pear_error: message=&quot;Could not find Template bug_2959.html in any of the directories&lt;br&gt;/home/clockwerx/pear/HTML_Template_Flexy/tests/templates&quot; code=-2 mode=return level=notice prefix=&quot;&quot; info=&quot;&quot;]</pre>]]></content:encoded>
      <description><![CDATA[<pre>HTML_Template_Flexy Feature/Change Request
Reported by doconnor
2008-10-27T05:46:10+00:00
PHP: 5.2.4 OS:  Package Version: CVS

Description:
------------
Could not find Template bug_2959.html in any of the directories

Test script:
---------------
pear run-tests

Expected result:
----------------
Test runs

Actual result:
--------------
003+ ===Compile failure==

004- 

004+ [pear_error: message=&quot;Could not find Template bug_2959.html in any of the directories&lt;br&gt;/home/clockwerx/pear/HTML_Template_Flexy/tests/templates&quot; code=-2 mode=return level=notice prefix=&quot;&quot; info=&quot;&quot;]</pre>]]></description>
      <dc:date>2009-03-02T13:26:36+00:00</dc:date>
      <dc:creator>daniel &amp;#x64;&amp;#111;&amp;#x74; oconnor &amp;#x61;&amp;#116; gmail &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>HTML_Template_Flexy Feature/Change Request</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/14035">
      <title>HTML_Template_Flexy: Bug 14035 [Open] flexy:replace, etc. don't handle modifiers</title>
      <link>http://pear.php.net/bugs/14035</link>
      <content:encoded><![CDATA[<pre>HTML_Template_Flexy Bug
Reported by ranvis
2008-05-31T14:28:01+00:00
PHP: Irrelevant OS: Windows Package Version: CVS

Description:
------------
replaceChildren() used by flexy:replace and flexy:content in the file
CustomFlexyAttributes.php doesn't handle values like &quot;object.var&quot; or values
with a modifier like &quot;:h&quot; correctly.


I've posted this alredy as #14034 but since I attached a patch to the post before confirming my mail address, it seems now impossible to make the report public. BTS complains &quot;Unknown salt&quot;...

Test script:
---------------
&lt;span flexy:replace=&quot;var:h&quot;&gt;test&lt;/span&gt;
&lt;div flexy:content=&quot;method():b&quot;&gt;test&lt;/div&gt;
&lt;span flexy:replace=&quot;object.var&quot;&gt;test&lt;/span&gt;

Expected result:
----------------
&lt;?php echo $t-&gt;var;?&gt;
&lt;div&gt;&lt;?php if ($this-&gt;options['strict'] || (isset($t) &amp;&amp; method_exists($t,
'method'))) echo nl2br(htmlspecialchars($t-&gt;method()));?&gt;&lt;/div&gt;
&lt;?php echo htmlspecialchars($t-&gt;object-&gt;var);?&gt;

Actual result:
--------------
&lt;?php echo $this-&gt;plugin(&quot;h}&quot;,$t-&gt;{var);?&gt;
&lt;div&gt;&lt;?php echo $this-&gt;plugin(&quot;b}&quot;,$t-&gt;{method());?&gt;&lt;/div&gt;
&lt;?php echo htmlspecialchars($t-&gt;{object-&gt;var});?&gt;</pre>]]></content:encoded>
      <description><![CDATA[<pre>HTML_Template_Flexy Bug
Reported by ranvis
2008-05-31T14:28:01+00:00
PHP: Irrelevant OS: Windows Package Version: CVS

Description:
------------
replaceChildren() used by flexy:replace and flexy:content in the file
CustomFlexyAttributes.php doesn't handle values like &quot;object.var&quot; or values
with a modifier like &quot;:h&quot; correctly.


I've posted this alredy as #14034 but since I attached a patch to the post before confirming my mail address, it seems now impossible to make the report public. BTS complains &quot;Unknown salt&quot;...

Test script:
---------------
&lt;span flexy:replace=&quot;var:h&quot;&gt;test&lt;/span&gt;
&lt;div flexy:content=&quot;method():b&quot;&gt;test&lt;/div&gt;
&lt;span flexy:replace=&quot;object.var&quot;&gt;test&lt;/span&gt;

Expected result:
----------------
&lt;?php echo $t-&gt;var;?&gt;
&lt;div&gt;&lt;?php if ($this-&gt;options['strict'] || (isset($t) &amp;&amp; method_exists($t,
'method'))) echo nl2br(htmlspecialchars($t-&gt;method()));?&gt;&lt;/div&gt;
&lt;?php echo htmlspecialchars($t-&gt;object-&gt;var);?&gt;

Actual result:
--------------
&lt;?php echo $this-&gt;plugin(&quot;h}&quot;,$t-&gt;{var);?&gt;
&lt;div&gt;&lt;?php echo $this-&gt;plugin(&quot;b}&quot;,$t-&gt;{method());?&gt;&lt;/div&gt;
&lt;?php echo htmlspecialchars($t-&gt;{object-&gt;var});?&gt;</pre>]]></description>
      <dc:date>2009-02-28T19:55:57+00:00</dc:date>
      <dc:creator>kentaro &amp;#x61;&amp;#116; ranvis &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>HTML_Template_Flexy Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/13396">
      <title>HTML_Template_Flexy: Documentation Problem 13396 [Verified] Add flexy:include to end-user documentation</title>
      <link>http://pear.php.net/bugs/13396</link>
      <content:encoded><![CDATA[<pre>HTML_Template_Flexy Documentation Problem
Reported by cbrunet
2008-03-15T13:34:40+00:00
PHP: Irrelevant OS:  Package Version: 1.3.3

Description:
------------
I cannot find any reference to flexy:include tag in the end-user documentation. I think this is a useful and powerful feature that should be documented.</pre>]]></content:encoded>
      <description><![CDATA[<pre>HTML_Template_Flexy Documentation Problem
Reported by cbrunet
2008-03-15T13:34:40+00:00
PHP: Irrelevant OS:  Package Version: 1.3.3

Description:
------------
I cannot find any reference to flexy:include tag in the end-user documentation. I think this is a useful and powerful feature that should be documented.</pre>]]></description>
      <dc:date>2008-04-29T02:49:30+00:00</dc:date>
      <dc:creator>charles &amp;#x64;&amp;#111;&amp;#x74; fmj &amp;#x61;&amp;#116; gmail &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>HTML_Template_Flexy Documentation Problem</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/13028">
      <title>HTML_Template_Flexy: Bug 13028 [Open] Chackboxes with flexy:nameuses in PHP4</title>
      <link>http://pear.php.net/bugs/13028</link>
      <content:encoded><![CDATA[<pre>HTML_Template_Flexy Bug
Reported by cbrunet
2008-01-31T18:20:40+00:00
PHP: 4.4.4 OS:  Package Version: 1.3.2

Description:
------------
See sample script. It works in PHP5, but on PHP4 at my web hoster, values aren't set correctly. Compiled template are identical from PHP4 and PHP5. If I replace checkbox with radio, it also works normally. It isn't new to 1.3.2. It was the same in 1.2.5. If I remove nameuses from the template, values are set normally.

Test script:
---------------
&lt;?
require_once &quot;HTML/Template/Flexy.php&quot;;
require_once &quot;HTML/Template/Flexy/Element.php&quot;;
$flexy_options = array(
    'templateDir'   =&gt; &quot;.&quot;, 'compileDir'    =&gt; &quot;.&quot;,
    'forceCompile'  =&gt; 0, 'debug'         =&gt; 0,
    'locale'        =&gt; 'en',  'compiler'      =&gt; 'Flexy',
);
class MaListe
{
function MaListe()
{
	global $flexy_options;
	$this-&gt;elements = array();
	$this-&gt;elements[&quot;ckbox[]&quot;] = new HTML_Template_Flexy_Element();
$this-&gt;elements[&quot;ckbox[]&quot;]-&gt;setAttributes(array(&quot;flexy:xhtml&quot;=&gt;true));
	$this-&gt;elements[&quot;ckbox[]&quot;]-&gt;setValue(array(1));
	$this-&gt;a = array(1=&gt;&quot;bonjour&quot;,2=&gt;&quot;allo&quot;,3=&gt;&quot;salut&quot;);
	$tmpl = new HTML_Template_Flexy($flexy_options);
	$tmpl-&gt;compile(&quot;modele.html&quot;);
	echo $tmpl-&gt;bufferedOutputObject($this, $this-&gt;elements);
}
}
new MaListe;
?&gt;

modele.html:
&lt;html&gt;
&lt;body&gt;
&lt;form&gt;
{foreach:a,i,n}
&lt;input type=&quot;checkbox&quot; name=&quot;ckbox[]&quot; flexy:nameuses=&quot;i&quot; id=&quot;c%s&quot; value=&quot;{i}&quot; /&gt;{n}&lt;br/&gt;
{end:}
&lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;

Expected result:
----------------
&lt;input type=&quot;checkbox&quot; name=&quot;ckbox[]&quot; id=&quot;c1&quot; value=&quot;1&quot; checked=&quot;checked&quot; /&gt;bonjour&lt;br /&gt;
&lt;input type=&quot;checkbox&quot; name=&quot;ckbox[]&quot; id=&quot;c2&quot; value=&quot;2&quot; checked=&quot;checked&quot; /&gt;allo&lt;br /&gt;
&lt;input type=&quot;checkbox&quot; name=&quot;ckbox[]&quot; id=&quot;c3&quot; value=&quot;3&quot; checked=&quot;checked&quot; /&gt;salut&lt;br /&gt;


Actual result:
--------------
&lt;input type=&quot;checkbox&quot; name=&quot;ckbox[]&quot; id=&quot;c1&quot; value=&quot;1&quot; checked=&quot;checked&quot; /&gt;bonjour&lt;br /&gt;
&lt;input type=&quot;checkbox&quot; name=&quot;ckbox[]&quot; id=&quot;c2&quot; value=&quot;1&quot; checked=&quot;checked&quot; /&gt;allo&lt;br /&gt;
&lt;input type=&quot;checkbox&quot; name=&quot;ckbox[]&quot; id=&quot;c3&quot; value=&quot;1&quot; checked=&quot;checked&quot; /&gt;salut&lt;br /&gt;</pre>]]></content:encoded>
      <description><![CDATA[<pre>HTML_Template_Flexy Bug
Reported by cbrunet
2008-01-31T18:20:40+00:00
PHP: 4.4.4 OS:  Package Version: 1.3.2

Description:
------------
See sample script. It works in PHP5, but on PHP4 at my web hoster, values aren't set correctly. Compiled template are identical from PHP4 and PHP5. If I replace checkbox with radio, it also works normally. It isn't new to 1.3.2. It was the same in 1.2.5. If I remove nameuses from the template, values are set normally.

Test script:
---------------
&lt;?
require_once &quot;HTML/Template/Flexy.php&quot;;
require_once &quot;HTML/Template/Flexy/Element.php&quot;;
$flexy_options = array(
    'templateDir'   =&gt; &quot;.&quot;, 'compileDir'    =&gt; &quot;.&quot;,
    'forceCompile'  =&gt; 0, 'debug'         =&gt; 0,
    'locale'        =&gt; 'en',  'compiler'      =&gt; 'Flexy',
);
class MaListe
{
function MaListe()
{
	global $flexy_options;
	$this-&gt;elements = array();
	$this-&gt;elements[&quot;ckbox[]&quot;] = new HTML_Template_Flexy_Element();
$this-&gt;elements[&quot;ckbox[]&quot;]-&gt;setAttributes(array(&quot;flexy:xhtml&quot;=&gt;true));
	$this-&gt;elements[&quot;ckbox[]&quot;]-&gt;setValue(array(1));
	$this-&gt;a = array(1=&gt;&quot;bonjour&quot;,2=&gt;&quot;allo&quot;,3=&gt;&quot;salut&quot;);
	$tmpl = new HTML_Template_Flexy($flexy_options);
	$tmpl-&gt;compile(&quot;modele.html&quot;);
	echo $tmpl-&gt;bufferedOutputObject($this, $this-&gt;elements);
}
}
new MaListe;
?&gt;

modele.html:
&lt;html&gt;
&lt;body&gt;
&lt;form&gt;
{foreach:a,i,n}
&lt;input type=&quot;checkbox&quot; name=&quot;ckbox[]&quot; flexy:nameuses=&quot;i&quot; id=&quot;c%s&quot; value=&quot;{i}&quot; /&gt;{n}&lt;br/&gt;
{end:}
&lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;

Expected result:
----------------
&lt;input type=&quot;checkbox&quot; name=&quot;ckbox[]&quot; id=&quot;c1&quot; value=&quot;1&quot; checked=&quot;checked&quot; /&gt;bonjour&lt;br /&gt;
&lt;input type=&quot;checkbox&quot; name=&quot;ckbox[]&quot; id=&quot;c2&quot; value=&quot;2&quot; checked=&quot;checked&quot; /&gt;allo&lt;br /&gt;
&lt;input type=&quot;checkbox&quot; name=&quot;ckbox[]&quot; id=&quot;c3&quot; value=&quot;3&quot; checked=&quot;checked&quot; /&gt;salut&lt;br /&gt;


Actual result:
--------------
&lt;input type=&quot;checkbox&quot; name=&quot;ckbox[]&quot; id=&quot;c1&quot; value=&quot;1&quot; checked=&quot;checked&quot; /&gt;bonjour&lt;br /&gt;
&lt;input type=&quot;checkbox&quot; name=&quot;ckbox[]&quot; id=&quot;c2&quot; value=&quot;1&quot; checked=&quot;checked&quot; /&gt;allo&lt;br /&gt;
&lt;input type=&quot;checkbox&quot; name=&quot;ckbox[]&quot; id=&quot;c3&quot; value=&quot;1&quot; checked=&quot;checked&quot; /&gt;salut&lt;br /&gt;</pre>]]></description>
      <dc:date>2008-07-21T12:36:45+00:00</dc:date>
      <dc:creator>charles &amp;#x64;&amp;#111;&amp;#x74; fmj &amp;#x61;&amp;#116; gmail &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>HTML_Template_Flexy Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/12686">
      <title>HTML_Template_Flexy: Feature/Change Request 12686 [Verified] input tag: htmlspecialchars is applied twice to value=&quot;{xxx}&quot;</title>
      <link>http://pear.php.net/bugs/12686</link>
      <content:encoded><![CDATA[<pre>HTML_Template_Flexy Feature/Change Request
Reported by setafujisystems
2007-12-14T07:19:14+00:00
PHP: 5.2.0 OS: Linux(RHEL) Package Version: 1.2.5

Description:
------------
Templates like:

&lt;input type=&quot;hidden&quot; name=&quot;foo&quot; value=&quot;{bar}&quot; /&gt;

became HTML like:

&lt;input type=&quot;hidden&quot; name=&quot;foo&quot; value=&quot;&amp;amp;lt;a&amp;amp;gt;&quot; /&gt;

when replaced with bar='&lt;a&gt;'

The expected result was
&lt;input type=&quot;hidden&quot; name=&quot;foo&quot; value=&quot;&amp;lt;a&amp;gt;&quot; /&gt;


&lt;input type=&quot;hidden&quot; name=&quot;foo&quot; value=&quot;{bar:h}&quot; /&gt;
&lt;input type=&quot;hidden&quot; name=&quot;foo&quot; value=&quot;{bar}&quot; flexy:ignore=&quot;yes&quot; /&gt;
did work properly.

&lt;span test=&quot;{bar}&quot;/&gt;
had no problem.

&lt;input type=&quot;text&quot; name=&quot;foo&quot; value=&quot;{bar}&quot; /&gt;
had same problem


# I know Flexy can dynamically make hidden tags, but sometimes I need the above way.</pre>]]></content:encoded>
      <description><![CDATA[<pre>HTML_Template_Flexy Feature/Change Request
Reported by setafujisystems
2007-12-14T07:19:14+00:00
PHP: 5.2.0 OS: Linux(RHEL) Package Version: 1.2.5

Description:
------------
Templates like:

&lt;input type=&quot;hidden&quot; name=&quot;foo&quot; value=&quot;{bar}&quot; /&gt;

became HTML like:

&lt;input type=&quot;hidden&quot; name=&quot;foo&quot; value=&quot;&amp;amp;lt;a&amp;amp;gt;&quot; /&gt;

when replaced with bar='&lt;a&gt;'

The expected result was
&lt;input type=&quot;hidden&quot; name=&quot;foo&quot; value=&quot;&amp;lt;a&amp;gt;&quot; /&gt;


&lt;input type=&quot;hidden&quot; name=&quot;foo&quot; value=&quot;{bar:h}&quot; /&gt;
&lt;input type=&quot;hidden&quot; name=&quot;foo&quot; value=&quot;{bar}&quot; flexy:ignore=&quot;yes&quot; /&gt;
did work properly.

&lt;span test=&quot;{bar}&quot;/&gt;
had no problem.

&lt;input type=&quot;text&quot; name=&quot;foo&quot; value=&quot;{bar}&quot; /&gt;
had same problem


# I know Flexy can dynamically make hidden tags, but sometimes I need the above way.</pre>]]></description>
      <dc:date>2008-01-01T13:32:40+00:00</dc:date>
      <dc:creator>seta &amp;#x61;&amp;#116; fujisystems &amp;#x64;&amp;#111;&amp;#x74; co &amp;#x64;&amp;#111;&amp;#x74; jp</dc:creator>
      <dc:subject>HTML_Template_Flexy Feature/Change Request</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/12515">
      <title>HTML_Template_Flexy: Feature/Change Request 12515 [Verified] can't put param from foreach into quoted method call</title>
      <link>http://pear.php.net/bugs/12515</link>
      <content:encoded><![CDATA[<pre>HTML_Template_Flexy Feature/Change Request
Reported by bigdeny
2007-11-23T20:01:35+00:00
PHP: Irrelevant OS:  Package Version: 1.2.5

Description:
------------
I would like to pass a foreach value into quoted method call

Test script:
---------------
{foreach:alphabet,letter}
&lt;a href=&quot;{makeUrl(#list#,#customer#,#customer#,##,#filter|#letter)}&quot;&gt;{letter}&lt;/a&gt;&amp;nbsp;
{end:}

Expected result:
----------------
somehow to be able to put a value of foreach value (e.g letter in this case) into a quoted string

e.g if letter is A, then the script would get the 5th param as  filter|A

It could be nice if you could do sth. like that:
{makeUrl(#list#,#customer#,#customer#,##,#filter|#letter#blah#someOtherVariable....)}

Or thinking a bit about this. It might be posible if flexy would allow doing sth like that.

{flexy:setvar,var_name,#string.content#,somevar,anotherVar,#moreStringcontent#}
this would then create a new variable with name var_name and value with concatenated &quot;static strings&quot; + values of variables

Actual result:
--------------
flexy fails to compile template...
or if putting letter inside ##, then it simply outputs the word.</pre>]]></content:encoded>
      <description><![CDATA[<pre>HTML_Template_Flexy Feature/Change Request
Reported by bigdeny
2007-11-23T20:01:35+00:00
PHP: Irrelevant OS:  Package Version: 1.2.5

Description:
------------
I would like to pass a foreach value into quoted method call

Test script:
---------------
{foreach:alphabet,letter}
&lt;a href=&quot;{makeUrl(#list#,#customer#,#customer#,##,#filter|#letter)}&quot;&gt;{letter}&lt;/a&gt;&amp;nbsp;
{end:}

Expected result:
----------------
somehow to be able to put a value of foreach value (e.g letter in this case) into a quoted string

e.g if letter is A, then the script would get the 5th param as  filter|A

It could be nice if you could do sth. like that:
{makeUrl(#list#,#customer#,#customer#,##,#filter|#letter#blah#someOtherVariable....)}

Or thinking a bit about this. It might be posible if flexy would allow doing sth like that.

{flexy:setvar,var_name,#string.content#,somevar,anotherVar,#moreStringcontent#}
this would then create a new variable with name var_name and value with concatenated &quot;static strings&quot; + values of variables

Actual result:
--------------
flexy fails to compile template...
or if putting letter inside ##, then it simply outputs the word.</pre>]]></description>
      <dc:date>2008-01-01T13:31:07+00:00</dc:date>
      <dc:creator>bigdeny &amp;#x61;&amp;#116; yahoo &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>HTML_Template_Flexy Feature/Change Request</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/10830">
      <title>HTML_Template_Flexy: Feature/Change Request 10830 [Assigned] *.gettext.serial string extraction not complete</title>
      <link>http://pear.php.net/bugs/10830</link>
      <content:encoded><![CDATA[<pre>HTML_Template_Flexy Feature/Change Request
Reported by panamajo
2007-04-24T18:45:40+00:00
PHP: 5.2.1 OS:  Package Version: 1.2.5

Description:
------------
The strings extracted to $templatename.gettext.serial lack some strings.
AFAICS the only HTML attribute strings unconditionally extracted are (in $PEAR/HTML/Template/Flexy/Compiler/Flexy.php):
&lt;img /&gt; alt attributes
&lt;a /&gt; title attributes

As title is a possible attribute to every HTML tag (except base, basefont, head, html, meta, param, script, style, title) its value should be extracted unconditionally.

The alt attribute is considered possible for HTML tag which reference images. That would include eg. &lt;input type=&quot;image&quot; /&gt;

Most important, for HTML tag input and attribute type submit|reset|button and for HTML tag button and type button, the value attribute strings should be extracted if no further handling via HTML_Template_Flexy_Element is to be expected (when options contain flexyIgnore != FALSE).

My patch to $PEAR/HTML/Template/Flexy/Compiler/Flexy.php,
method toStringTag():
    function toStringTag($element) {

        $original = $element-&gt;getAttribute('ALT');
        if (($element-&gt;tag == 'IMG') &amp;&amp; is_string($original) &amp;&amp; strlen($original)) {
            $this-&gt;addStringToGettext($original);
            $quote = $element-&gt;ucAttributes['ALT']{0};
            $element-&gt;ucAttributes['ALT'] = $quote  . $this-&gt;translateString($original). $quote;
        }
        $original = $element-&gt;getAttribute('TITLE');
        $this-&gt;addStringToGettext($original);
        $quote = $element-&gt;ucAttributes['TITLE']{0};
        $element-&gt;ucAttributes['TITLE'] = $quote  . $this-&gt;translateString($original). $quote;

        $original = $element-&gt;getAttribute('VALUE');
        if (($element-&gt;tag == 'INPUT') &amp;&amp; is_string($original) &amp;&amp; strlen($original)) {
            if (in_array(strtoupper($element-&gt;getAttribute('TYPE')), array('SUBMIT','BUTTON','INPUT','')))  {
                $this-&gt;addStringToGettext($original);
                $quote = $element-&gt;ucAttributes['VALUE']{0};
                $element-&gt;ucAttributes['VALUE'] = $quote  . $this-&gt;translateString($original). $quote;
            }
        }



Test script:
---------------
I used the following template:
&lt;table flexy:start=&quot;here&quot; width=&quot;100%&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;20&quot;&gt;
  &lt;tr&gt;
    &lt;td&gt;

      &lt;form action=&quot;{SERVER[PHP_SELF]}&quot; method=&quot;post&quot; name=&quot;volvox_login&quot;&gt;
	&lt;table border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;2&quot; class=&quot;linien&quot; align=&quot;center&quot;&gt;
	&lt;thead&gt;
		&lt;tr&gt;
			&lt;th align=&quot;center&quot; colspan=&quot;2&quot;&gt;Please login&lt;/th&gt;
		&lt;/tr&gt;
	&lt;/thead&gt;
	&lt;tfoot&gt;
	&lt;/tfoot&gt;
	&lt;tbody&gt;
		&lt;tr&gt;
			&lt;td valign=&quot;top&quot; colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td valign=&quot;top&quot;&gt;User:&lt;/td&gt;
			&lt;td valign=&quot;top&quot;&gt;&lt;input type=&quot;text&quot; name=&quot;login_name&quot; size=&quot;20&quot; maxlength=&quot;128&quot; value=&quot;{REQUEST[login_name]}&quot; /&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td valign=&quot;top&quot;&gt;Password:&lt;/td&gt;
			&lt;td valign=&quot;top&quot;&gt;&lt;input type=&quot;password&quot; name=&quot;login_pass&quot; size=&quot;20&quot; maxlength=&quot;128&quot; value=&quot;&quot; /&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td align=&quot;center&quot; colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;br /&gt;
				&lt;input type=&quot;submit&quot; name=&quot;submit&quot; class=&quot;button&quot; value=&quot;Login&quot; &gt;
				&lt;input type=&quot;hidden&quot; name=&quot;form_submitted&quot; value=&quot;-1&quot; /&gt;
				&lt;input type=&quot;hidden&quot; name=&quot;action&quot; value=&quot;login&quot; /&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
	&lt;/tbody&gt;
	&lt;/table&gt;

      &lt;/form&gt;

    &lt;/td&gt;
  &lt;/tr&gt;
&lt;/table&gt;

Expected result:
----------------
$c = file_get_contents(&quot;./volvox_login.html.gettext.serial&quot;); $out = unserialize($c); print_r($out);

Array
(
    [0] =&gt; Please login
    [1] =&gt; User:
    [2] =&gt; Password:
    [3] =&gt; Login
)


Actual result:
--------------
Array
(
    [0] =&gt; Please login
    [1] =&gt; User:
    [2] =&gt; Password:
)</pre>]]></content:encoded>
      <description><![CDATA[<pre>HTML_Template_Flexy Feature/Change Request
Reported by panamajo
2007-04-24T18:45:40+00:00
PHP: 5.2.1 OS:  Package Version: 1.2.5

Description:
------------
The strings extracted to $templatename.gettext.serial lack some strings.
AFAICS the only HTML attribute strings unconditionally extracted are (in $PEAR/HTML/Template/Flexy/Compiler/Flexy.php):
&lt;img /&gt; alt attributes
&lt;a /&gt; title attributes

As title is a possible attribute to every HTML tag (except base, basefont, head, html, meta, param, script, style, title) its value should be extracted unconditionally.

The alt attribute is considered possible for HTML tag which reference images. That would include eg. &lt;input type=&quot;image&quot; /&gt;

Most important, for HTML tag input and attribute type submit|reset|button and for HTML tag button and type button, the value attribute strings should be extracted if no further handling via HTML_Template_Flexy_Element is to be expected (when options contain flexyIgnore != FALSE).

My patch to $PEAR/HTML/Template/Flexy/Compiler/Flexy.php,
method toStringTag():
    function toStringTag($element) {

        $original = $element-&gt;getAttribute('ALT');
        if (($element-&gt;tag == 'IMG') &amp;&amp; is_string($original) &amp;&amp; strlen($original)) {
            $this-&gt;addStringToGettext($original);
            $quote = $element-&gt;ucAttributes['ALT']{0};
            $element-&gt;ucAttributes['ALT'] = $quote  . $this-&gt;translateString($original). $quote;
        }
        $original = $element-&gt;getAttribute('TITLE');
        $this-&gt;addStringToGettext($original);
        $quote = $element-&gt;ucAttributes['TITLE']{0};
        $element-&gt;ucAttributes['TITLE'] = $quote  . $this-&gt;translateString($original). $quote;

        $original = $element-&gt;getAttribute('VALUE');
        if (($element-&gt;tag == 'INPUT') &amp;&amp; is_string($original) &amp;&amp; strlen($original)) {
            if (in_array(strtoupper($element-&gt;getAttribute('TYPE')), array('SUBMIT','BUTTON','INPUT','')))  {
                $this-&gt;addStringToGettext($original);
                $quote = $element-&gt;ucAttributes['VALUE']{0};
                $element-&gt;ucAttributes['VALUE'] = $quote  . $this-&gt;translateString($original). $quote;
            }
        }



Test script:
---------------
I used the following template:
&lt;table flexy:start=&quot;here&quot; width=&quot;100%&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;20&quot;&gt;
  &lt;tr&gt;
    &lt;td&gt;

      &lt;form action=&quot;{SERVER[PHP_SELF]}&quot; method=&quot;post&quot; name=&quot;volvox_login&quot;&gt;
	&lt;table border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;2&quot; class=&quot;linien&quot; align=&quot;center&quot;&gt;
	&lt;thead&gt;
		&lt;tr&gt;
			&lt;th align=&quot;center&quot; colspan=&quot;2&quot;&gt;Please login&lt;/th&gt;
		&lt;/tr&gt;
	&lt;/thead&gt;
	&lt;tfoot&gt;
	&lt;/tfoot&gt;
	&lt;tbody&gt;
		&lt;tr&gt;
			&lt;td valign=&quot;top&quot; colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td valign=&quot;top&quot;&gt;User:&lt;/td&gt;
			&lt;td valign=&quot;top&quot;&gt;&lt;input type=&quot;text&quot; name=&quot;login_name&quot; size=&quot;20&quot; maxlength=&quot;128&quot; value=&quot;{REQUEST[login_name]}&quot; /&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td valign=&quot;top&quot;&gt;Password:&lt;/td&gt;
			&lt;td valign=&quot;top&quot;&gt;&lt;input type=&quot;password&quot; name=&quot;login_pass&quot; size=&quot;20&quot; maxlength=&quot;128&quot; value=&quot;&quot; /&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td align=&quot;center&quot; colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;br /&gt;
				&lt;input type=&quot;submit&quot; name=&quot;submit&quot; class=&quot;button&quot; value=&quot;Login&quot; &gt;
				&lt;input type=&quot;hidden&quot; name=&quot;form_submitted&quot; value=&quot;-1&quot; /&gt;
				&lt;input type=&quot;hidden&quot; name=&quot;action&quot; value=&quot;login&quot; /&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
	&lt;/tbody&gt;
	&lt;/table&gt;

      &lt;/form&gt;

    &lt;/td&gt;
  &lt;/tr&gt;
&lt;/table&gt;

Expected result:
----------------
$c = file_get_contents(&quot;./volvox_login.html.gettext.serial&quot;); $out = unserialize($c); print_r($out);

Array
(
    [0] =&gt; Please login
    [1] =&gt; User:
    [2] =&gt; Password:
    [3] =&gt; Login
)


Actual result:
--------------
Array
(
    [0] =&gt; Please login
    [1] =&gt; User:
    [2] =&gt; Password:
)</pre>]]></description>
      <dc:date>2008-02-18T17:37:51+00:00</dc:date>
      <dc:creator>jo &amp;#x61;&amp;#116; feuersee &amp;#x64;&amp;#111;&amp;#x74; de</dc:creator>
      <dc:subject>HTML_Template_Flexy Feature/Change Request</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/10248">
      <title>HTML_Template_Flexy: Feature/Change Request 10248 [Open] Additional Flexy Attributes</title>
      <link>http://pear.php.net/bugs/10248</link>
      <content:encoded><![CDATA[<pre>HTML_Template_Flexy Feature/Change Request
Reported by rick@...
2007-03-02T21:39:17+00:00
PHP: Irrelevant OS: win2k Package Version: 1.2.5

Description:
------------
Flexy is almost a full &quot;template attribute language&quot;. It supports conditionals and loops using flexy:xxx attributes, but it is missing a few things (such as those included in phpTal).

With the addition of a few new flexy attributes, placeholders could be virtually eliminated from source templates. The advantage is cleaner source templates that appear the same in a browser with or without the addition of flexy markup. Furthermore, default content added by a designer could remain in the source template for viewing as html, even though dynamic content would replace it when running php.

Requested flexy attributes:

&quot;Flexy:content&quot;

template: 
&lt;span flexy:content=&quot;myvar&quot;&gt;will be replaced by myvar&lt;/span&gt;
output: 
&lt;span&gt;contents of myvar&lt;/span&gt;

&quot;Flexy:replace&quot;

template: 
&lt;span flexy:replace=&quot;myvar&quot;&gt;element will be replaced by myvar&lt;/span&gt;
&lt;span flexy:replace=&quot;&quot;&gt;element will be deleted&lt;/span&gt;
output: 
contents of myvar

&quot;Flexy:omit-tag&quot; (useful when the purpose of the tag is just to hold flexy attributes like conditionals and foreach loops)

template:
&lt;span tal:omit-tag=&quot;&quot;&gt;this text will appear but the tags will be removed&lt;/span&gt;
output:
this text will appear but the tags will be removed</pre>]]></content:encoded>
      <description><![CDATA[<pre>HTML_Template_Flexy Feature/Change Request
Reported by rick@...
2007-03-02T21:39:17+00:00
PHP: Irrelevant OS: win2k Package Version: 1.2.5

Description:
------------
Flexy is almost a full &quot;template attribute language&quot;. It supports conditionals and loops using flexy:xxx attributes, but it is missing a few things (such as those included in phpTal).

With the addition of a few new flexy attributes, placeholders could be virtually eliminated from source templates. The advantage is cleaner source templates that appear the same in a browser with or without the addition of flexy markup. Furthermore, default content added by a designer could remain in the source template for viewing as html, even though dynamic content would replace it when running php.

Requested flexy attributes:

&quot;Flexy:content&quot;

template: 
&lt;span flexy:content=&quot;myvar&quot;&gt;will be replaced by myvar&lt;/span&gt;
output: 
&lt;span&gt;contents of myvar&lt;/span&gt;

&quot;Flexy:replace&quot;

template: 
&lt;span flexy:replace=&quot;myvar&quot;&gt;element will be replaced by myvar&lt;/span&gt;
&lt;span flexy:replace=&quot;&quot;&gt;element will be deleted&lt;/span&gt;
output: 
contents of myvar

&quot;Flexy:omit-tag&quot; (useful when the purpose of the tag is just to hold flexy attributes like conditionals and foreach loops)

template:
&lt;span tal:omit-tag=&quot;&quot;&gt;this text will appear but the tags will be removed&lt;/span&gt;
output:
this text will appear but the tags will be removed</pre>]]></description>
      <dc:date>2008-01-31T11:20:07+00:00</dc:date>
      <dc:creator>rick &amp;#x61;&amp;#116; coalescentdesign &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>HTML_Template_Flexy Feature/Change Request</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/10123">
      <title>HTML_Template_Flexy: Feature/Change Request 10123 [Analyzed] Multiple indirection, i.e. a.b().c() etc</title>
      <link>http://pear.php.net/bugs/10123</link>
      <content:encoded><![CDATA[<pre>HTML_Template_Flexy Feature/Change Request
Reported by mike@...
2007-02-19T10:43:17+00:00
PHP: 5.2.0 OS: Windows Package Version: 1.2.5

Description:
------------
I tried the following:

{a.method().method()}

But the parser generates an error (I can't give an example right now, I'll paste one later).

I'm guessing this isn't supported? I think it's pretty important, otherwise my back-end code has to munge all the data into 'flat' classes before it can be used... which is messy and time consuming.</pre>]]></content:encoded>
      <description><![CDATA[<pre>HTML_Template_Flexy Feature/Change Request
Reported by mike@...
2007-02-19T10:43:17+00:00
PHP: 5.2.0 OS: Windows Package Version: 1.2.5

Description:
------------
I tried the following:

{a.method().method()}

But the parser generates an error (I can't give an example right now, I'll paste one later).

I'm guessing this isn't supported? I think it's pretty important, otherwise my back-end code has to munge all the data into 'flat' classes before it can be used... which is messy and time consuming.</pre>]]></description>
      <dc:date>2007-03-03T04:36:16+00:00</dc:date>
      <dc:creator>mike &amp;#x61;&amp;#116; we11er &amp;#x64;&amp;#111;&amp;#x74; co &amp;#x64;&amp;#111;&amp;#x74; uk</dc:creator>
      <dc:subject>HTML_Template_Flexy Feature/Change Request</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/8064">
      <title>HTML_Template_Flexy: Feature/Change Request 8064 [Verified] toJavascript deletes javascript</title>
      <link>http://pear.php.net/bugs/8064</link>
      <content:encoded><![CDATA[<pre>HTML_Template_Flexy Feature/Change Request
Reported by cmouse@...
2006-06-29T07:34:34+00:00
PHP: 5.1.4 OS: Linux Package Version: 1.2.4

Description:
------------
Example:

&lt;flexy:toJavascript group=&quot;group&quot;&gt;
 &lt;script type=&quot;text/javascript&quot;&gt;
  &lt;!--; // &lt;![CDATA[
   var group=0;
   toggleGroup(group);
  // ]]&gt; --&gt;
 &lt;/script&gt;
&lt;/flexy:toJavascript&gt;

This renders up as

 &lt;script type=&quot;text/javascript&quot;&gt;
  &lt;!--; // &lt;![CDATA[
   var group=0;
  // ]]&gt; --&gt;
 &lt;/script&gt;

And then I go 'WTF!?!' where is my toggleGroup?!. Oh, it filters it out. So, I have to go round this by adding yet another &lt;script&gt;&lt;/script&gt; tag which actually does this one-line function call. 

Would make the code a LOT cleaner in many places if you could just not remove the javascript. Or you could at least say something about this in the manual page. It is very irritating undocumented &quot;feature&quot;.

Test script:
---------------
See above</pre>]]></content:encoded>
      <description><![CDATA[<pre>HTML_Template_Flexy Feature/Change Request
Reported by cmouse@...
2006-06-29T07:34:34+00:00
PHP: 5.1.4 OS: Linux Package Version: 1.2.4

Description:
------------
Example:

&lt;flexy:toJavascript group=&quot;group&quot;&gt;
 &lt;script type=&quot;text/javascript&quot;&gt;
  &lt;!--; // &lt;![CDATA[
   var group=0;
   toggleGroup(group);
  // ]]&gt; --&gt;
 &lt;/script&gt;
&lt;/flexy:toJavascript&gt;

This renders up as

 &lt;script type=&quot;text/javascript&quot;&gt;
  &lt;!--; // &lt;![CDATA[
   var group=0;
  // ]]&gt; --&gt;
 &lt;/script&gt;

And then I go 'WTF!?!' where is my toggleGroup?!. Oh, it filters it out. So, I have to go round this by adding yet another &lt;script&gt;&lt;/script&gt; tag which actually does this one-line function call. 

Would make the code a LOT cleaner in many places if you could just not remove the javascript. Or you could at least say something about this in the manual page. It is very irritating undocumented &quot;feature&quot;.

Test script:
---------------
See above</pre>]]></description>
      <dc:date>2006-06-29T07:41:44+00:00</dc:date>
      <dc:creator>cmouse &amp;#x61;&amp;#116; desteem &amp;#x64;&amp;#111;&amp;#x74; org</dc:creator>
      <dc:subject>HTML_Template_Flexy Feature/Change Request</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/6799">
      <title>HTML_Template_Flexy: Feature/Change Request 6799 [Verified] overzealous quoting of strings</title>
      <link>http://pear.php.net/bugs/6799</link>
      <content:encoded><![CDATA[<pre>HTML_Template_Flexy Feature/Change Request
Reported by dev@...
2006-02-16T17:36:30+00:00
PHP: Irrelevant OS: fedora 4 Package Version: 1.2.4

Description:
------------
when i pass a string to a function in the template page
flexy compile this string added to it a slash.

Test script:
---------------
template.html

{a_function(#a string whit single quota ' etc.. #):h}

flexy compile it in..

&lt;?php [..] echo $t-&gt;a_function(&quot;a string whit single quota \' etc.. &quot;);?&gt;

the result is wrong!

a string whit single quota \' etc..</pre>]]></content:encoded>
      <description><![CDATA[<pre>HTML_Template_Flexy Feature/Change Request
Reported by dev@...
2006-02-16T17:36:30+00:00
PHP: Irrelevant OS: fedora 4 Package Version: 1.2.4

Description:
------------
when i pass a string to a function in the template page
flexy compile this string added to it a slash.

Test script:
---------------
template.html

{a_function(#a string whit single quota ' etc.. #):h}

flexy compile it in..

&lt;?php [..] echo $t-&gt;a_function(&quot;a string whit single quota \' etc.. &quot;);?&gt;

the result is wrong!

a string whit single quota \' etc..</pre>]]></description>
      <dc:date>2006-05-12T08:06:06+00:00</dc:date>
      <dc:creator>dev &amp;#x61;&amp;#116; webzone &amp;#x64;&amp;#111;&amp;#x74; it</dc:creator>
      <dc:subject>HTML_Template_Flexy Feature/Change Request</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/4405">
      <title>HTML_Template_Flexy: Feature/Change Request 4405 [Open] Patch to allow overriding variable names in included templates</title>
      <link>http://pear.php.net/bugs/4405</link>
      <content:encoded><![CDATA[<pre>HTML_Template_Flexy Feature/Change Request
Reported by rshaull@...
2005-05-22T12:13:19+00:00
PHP: 4.3.11 OS: Slackware Linux 10 Package Version: 

Description:
------------
Using HTML_Template_Flexy 1.2.1 installed through Pear.

The Flexy Compiler automatically passes variables defined in the scope of the current template into the scope of a template included with &lt;flexy:include&gt;. I have patched the code to allow variable names to be changed before being passed to the included template (without changing them in the calling template). This makes it easier to combine templates without have to change variable names in an included template to match the variable names in the calling template. It also makes template recursion possible.

In the patched code, you can add child elements named &lt;flexy:variableOverride&gt; to the &lt;flexy:include&gt; element. 
This allows you to override the name of a variable being passed to the included template.

For example, this _snippet_ from &quot;element.html&quot; (used to format the output of single elements in a form) will result in an infinite loop:
-----------------------------------------------------
{foreach:elem.elements,grouped_elem}
    &lt;flexy:include src=&quot;element.html&quot; /&gt;
{end:}
-----------------------------------------------------

But &lt;flexy:variableOverride&gt; allows you to do this:
-----------------------------------------------------
{foreach:elem.elements,grouped_elem}
    &lt;flexy:include src=&quot;element.html&quot;&gt;
        &lt;flexy:variableOverride name=&quot;grouped_elem&quot; newName=&quot;elem&quot; /&gt;
    &lt;/flexy:include&gt;
{end:}
-----------------------------------------------------

... which allows the recursive call to handle the elements from the element group.

I added some comments to the function includeToString in the patch I sent to you by email, so I will not reproduce them here. The PHP code that needs to be added to function includeToString in Compiler/Flexy/Flexy.php is reproduced in this bug report.

Thanks,

-Ross

Reproduce code:
---------------
in Compiler/Flexy/Flexy.php, around line 125, add this:
-----------------------------------------------------
$variableOverrides = '';
foreach($element-&gt;children as $child) {
    if($child-&gt;tag == 'FLEXY:VARIABLEOVERRIDE') {
        $current_name = $child-&gt;getAttribute('NAME');
        $new_name = $child-&gt;getAttribute('NEWNAME');
        if(!$current_name || !$new_name) {
            return $this-&gt;compiler-&gt;appendHTML(&quot;&lt;B&gt;Flexy:variableOverride without a new=&amp;quot;current-name&amp;quot; and newName=&amp;quot;new-name&amp;quot;&lt;/B&gt;&quot;);
        }
        $variableOverrides .= &quot;\$_t-&gt;$new_name = \$$current_name;\n&quot;;
    }
}
-----------------------------------------------------

Then adjust lines 143-145 to look like this:
-----------------------------------------------------
&quot;}\n&quot; .
$variableOverrides .
&quot;\$x-&gt;outputObject(\$_t, \$this-&gt;elements);\n&quot;
-----------------------------------------------------

... note that this concatenates the $variableOverrides variable into the php code that gets stored into the template. The important point is that it happens after the assignments in lines 141-143.

Expected result:
----------------
Without the patch, recursive calls to &lt;flexy:include&gt; can result in an infinite loop. With the patch and proper use of  &lt;flexy:variableOverride&gt; tag(s) inside the &lt;flexy:include&gt; tag, an infinite loop is not generated and useful behavior can be achieved.</pre>]]></content:encoded>
      <description><![CDATA[<pre>HTML_Template_Flexy Feature/Change Request
Reported by rshaull@...
2005-05-22T12:13:19+00:00
PHP: 4.3.11 OS: Slackware Linux 10 Package Version: 

Description:
------------
Using HTML_Template_Flexy 1.2.1 installed through Pear.

The Flexy Compiler automatically passes variables defined in the scope of the current template into the scope of a template included with &lt;flexy:include&gt;. I have patched the code to allow variable names to be changed before being passed to the included template (without changing them in the calling template). This makes it easier to combine templates without have to change variable names in an included template to match the variable names in the calling template. It also makes template recursion possible.

In the patched code, you can add child elements named &lt;flexy:variableOverride&gt; to the &lt;flexy:include&gt; element. 
This allows you to override the name of a variable being passed to the included template.

For example, this _snippet_ from &quot;element.html&quot; (used to format the output of single elements in a form) will result in an infinite loop:
-----------------------------------------------------
{foreach:elem.elements,grouped_elem}
    &lt;flexy:include src=&quot;element.html&quot; /&gt;
{end:}
-----------------------------------------------------

But &lt;flexy:variableOverride&gt; allows you to do this:
-----------------------------------------------------
{foreach:elem.elements,grouped_elem}
    &lt;flexy:include src=&quot;element.html&quot;&gt;
        &lt;flexy:variableOverride name=&quot;grouped_elem&quot; newName=&quot;elem&quot; /&gt;
    &lt;/flexy:include&gt;
{end:}
-----------------------------------------------------

... which allows the recursive call to handle the elements from the element group.

I added some comments to the function includeToString in the patch I sent to you by email, so I will not reproduce them here. The PHP code that needs to be added to function includeToString in Compiler/Flexy/Flexy.php is reproduced in this bug report.

Thanks,

-Ross

Reproduce code:
---------------
in Compiler/Flexy/Flexy.php, around line 125, add this:
-----------------------------------------------------
$variableOverrides = '';
foreach($element-&gt;children as $child) {
    if($child-&gt;tag == 'FLEXY:VARIABLEOVERRIDE') {
        $current_name = $child-&gt;getAttribute('NAME');
        $new_name = $child-&gt;getAttribute('NEWNAME');
        if(!$current_name || !$new_name) {
            return $this-&gt;compiler-&gt;appendHTML(&quot;&lt;B&gt;Flexy:variableOverride without a new=&amp;quot;current-name&amp;quot; and newName=&amp;quot;new-name&amp;quot;&lt;/B&gt;&quot;);
        }
        $variableOverrides .= &quot;\$_t-&gt;$new_name = \$$current_name;\n&quot;;
    }
}
-----------------------------------------------------

Then adjust lines 143-145 to look like this:
-----------------------------------------------------
&quot;}\n&quot; .
$variableOverrides .
&quot;\$x-&gt;outputObject(\$_t, \$this-&gt;elements);\n&quot;
-----------------------------------------------------

... note that this concatenates the $variableOverrides variable into the php code that gets stored into the template. The important point is that it happens after the assignments in lines 141-143.

Expected result:
----------------
Without the patch, recursive calls to &lt;flexy:include&gt; can result in an infinite loop. With the patch and proper use of  &lt;flexy:variableOverride&gt; tag(s) inside the &lt;flexy:include&gt; tag, an infinite loop is not generated and useful behavior can be achieved.</pre>]]></description>
      <dc:date>2005-05-22T20:41:23+00:00</dc:date>
      <dc:creator>rshaull &amp;#x61;&amp;#116; gmail &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>HTML_Template_Flexy Feature/Change Request</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/4298">
      <title>HTML_Template_Flexy: Feature/Change Request 4298 [Verified] Fancy HTML stuff needs documenting.. (Request for HTML attributes with no value)</title>
      <link>http://pear.php.net/bugs/4298</link>
      <content:encoded><![CDATA[<pre>HTML_Template_Flexy Feature/Change Request
Reported by brett@...
2005-05-06T17:04:32+00:00
PHP: Irrelevant OS: Irrelevant Package Version: 

Description:
------------
There does not seem to be a way to conditionaly print &quot;checked&quot; in a checkbox element or &quot;multi&quot; into a select element.  

Perhaps I am overlooking something or the documentation is missing this example. If this is the case, can someone please email me a *slap*?</pre>]]></content:encoded>
      <description><![CDATA[<pre>HTML_Template_Flexy Feature/Change Request
Reported by brett@...
2005-05-06T17:04:32+00:00
PHP: Irrelevant OS: Irrelevant Package Version: 

Description:
------------
There does not seem to be a way to conditionaly print &quot;checked&quot; in a checkbox element or &quot;multi&quot; into a select element.  

Perhaps I am overlooking something or the documentation is missing this example. If this is the case, can someone please email me a *slap*?</pre>]]></description>
      <dc:date>2005-05-09T08:23:52+00:00</dc:date>
      <dc:creator>brett &amp;#x61;&amp;#116; mrphp &amp;#x64;&amp;#111;&amp;#x74; com &amp;#x64;&amp;#111;&amp;#x74; au</dc:creator>
      <dc:subject>HTML_Template_Flexy Feature/Change Request</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/3024">
      <title>HTML_Template_Flexy: Feature/Change Request 3024 [Verified] [DOC] - note that foreach scopes differently than PHP</title>
      <link>http://pear.php.net/bugs/3024</link>
      <content:encoded><![CDATA[<pre>HTML_Template_Flexy Feature/Change Request
Reported by ryanbell@...
2004-12-23T22:29:06+00:00
PHP: 4.3.9 OS: FreeBSD 4.10 Package Version: 

Description:
------------
I am using Flexy v1.1.0.  I have a two-dimensional array and would like to do the following (where I actually ran into this was a little different, but it was easier to explain this way ^_-):

&lt;table&gt;
  &lt;tr flexy:foreach=&quot;res,row&quot;&gt;
    &lt;td flexy:foreach=&quot;row,col&quot;&gt;{col}&lt;/td&gt;
  &lt;/tr&gt;
&lt;/table&gt;

instead I have to use:

&lt;table&gt;
  {foreach:res,row}
    &lt;tr&gt;
      {foreach:row,col}
        &lt;td&gt;{col}&lt;/td&gt;
      {end:}
    &lt;/tr&gt;
  {end:}
&lt;/table&gt;

The more verbose method works, so my immediate problem is solved, but I would like to see the ability to use nested 'flexy:foreach' statements.

Great job with this package, and thanks for all your hard work! ^_^

Reproduce code:
---------------
&lt;?php
  $res = array(array('John','Doe'),array('Jane','Doe'));
?&gt;

&lt;table&gt;
  &lt;tr flexy:foreach=&quot;res,row&quot;&gt;
    &lt;td flexy:foreach=&quot;row,col&quot;&gt;{col}&lt;/td&gt;
  &lt;/tr&gt;
&lt;/table&gt;


Expected result:
----------------
+------+-----+
| John | Doe |
+------+-----+
| Jane | Doe |
+------+-----+

Actual result:
--------------
[nothing], because nothing gets assigned to 'col'.  I imagine this is because $row = $t-&gt;res[$i] and $col = $t-&gt;row[$i] when using 'flexy:foreach' within the tags, rather than $col = $row[$ii].

Hope that makes sense.</pre>]]></content:encoded>
      <description><![CDATA[<pre>HTML_Template_Flexy Feature/Change Request
Reported by ryanbell@...
2004-12-23T22:29:06+00:00
PHP: 4.3.9 OS: FreeBSD 4.10 Package Version: 

Description:
------------
I am using Flexy v1.1.0.  I have a two-dimensional array and would like to do the following (where I actually ran into this was a little different, but it was easier to explain this way ^_-):

&lt;table&gt;
  &lt;tr flexy:foreach=&quot;res,row&quot;&gt;
    &lt;td flexy:foreach=&quot;row,col&quot;&gt;{col}&lt;/td&gt;
  &lt;/tr&gt;
&lt;/table&gt;

instead I have to use:

&lt;table&gt;
  {foreach:res,row}
    &lt;tr&gt;
      {foreach:row,col}
        &lt;td&gt;{col}&lt;/td&gt;
      {end:}
    &lt;/tr&gt;
  {end:}
&lt;/table&gt;

The more verbose method works, so my immediate problem is solved, but I would like to see the ability to use nested 'flexy:foreach' statements.

Great job with this package, and thanks for all your hard work! ^_^

Reproduce code:
---------------
&lt;?php
  $res = array(array('John','Doe'),array('Jane','Doe'));
?&gt;

&lt;table&gt;
  &lt;tr flexy:foreach=&quot;res,row&quot;&gt;
    &lt;td flexy:foreach=&quot;row,col&quot;&gt;{col}&lt;/td&gt;
  &lt;/tr&gt;
&lt;/table&gt;


Expected result:
----------------
+------+-----+
| John | Doe |
+------+-----+
| Jane | Doe |
+------+-----+

Actual result:
--------------
[nothing], because nothing gets assigned to 'col'.  I imagine this is because $row = $t-&gt;res[$i] and $col = $t-&gt;row[$i] when using 'flexy:foreach' within the tags, rather than $col = $row[$ii].

Hope that makes sense.</pre>]]></description>
      <dc:date>2005-06-27T10:19:35+00:00</dc:date>
      <dc:creator>ryanbell &amp;#x61;&amp;#116; pobox &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>HTML_Template_Flexy Feature/Change Request</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/2997">
      <title>HTML_Template_Flexy: Feature/Change Request 2997 [Assigned] Request: Flexy - custom tag handler</title>
      <link>http://pear.php.net/bugs/2997</link>
      <content:encoded><![CDATA[<pre>HTML_Template_Flexy Feature/Change Request
Reported by pure
2004-12-20T20:18:01+00:00
PHP: 5.0.2 OS:  Package Version: 

Description:
------------
It would be nice if it would be possible to add custom tag handlers to flexy (&lt;media:include_image id=&quot;321&quot;&gt;). this is actualy no problem, but HTML_Template_Flexy_Compiler_Flexy_Tag::factory() that gets called by the Flexy Compiler does a lookup if the tag handler exists in the pear directory of flexy.
i tend to put my extensions to pear classes somewhere else in the include_path so they dont get overwriten or lost due upgrades.

replacing these lines in HTML/Template/Flexy/Compiler/Flexy/Tag.php (Line 70)

if (!file_exists(dirname(__FILE__) . '/'. ucfirst(strtolower($type)) . '.php')) {
	$type = 'Tag';
}

with something like:

        $filename = 'HTML/Template/Flexy/Compiler/Flexy/' . ucfirst(strtolower($type)) . '.php';
        if (!@fopen($filename, &quot;r&quot;, true)) {
        	$type = 'Tag';
        }

fixes the problem. fopen uses the include path to check if the files exists.
its possible to create the directory structure 'HTML/Template/Flexy/Compiler/Flexy/' somewhere else in the include path, and put custom tag handlers there.



Reproduce code:
---------------
-

Expected result:
----------------
-

Actual result:
--------------
-</pre>]]></content:encoded>
      <description><![CDATA[<pre>HTML_Template_Flexy Feature/Change Request
Reported by pure
2004-12-20T20:18:01+00:00
PHP: 5.0.2 OS:  Package Version: 

Description:
------------
It would be nice if it would be possible to add custom tag handlers to flexy (&lt;media:include_image id=&quot;321&quot;&gt;). this is actualy no problem, but HTML_Template_Flexy_Compiler_Flexy_Tag::factory() that gets called by the Flexy Compiler does a lookup if the tag handler exists in the pear directory of flexy.
i tend to put my extensions to pear classes somewhere else in the include_path so they dont get overwriten or lost due upgrades.

replacing these lines in HTML/Template/Flexy/Compiler/Flexy/Tag.php (Line 70)

if (!file_exists(dirname(__FILE__) . '/'. ucfirst(strtolower($type)) . '.php')) {
	$type = 'Tag';
}

with something like:

        $filename = 'HTML/Template/Flexy/Compiler/Flexy/' . ucfirst(strtolower($type)) . '.php';
        if (!@fopen($filename, &quot;r&quot;, true)) {
        	$type = 'Tag';
        }

fixes the problem. fopen uses the include path to check if the files exists.
its possible to create the directory structure 'HTML/Template/Flexy/Compiler/Flexy/' somewhere else in the include path, and put custom tag handlers there.



Reproduce code:
---------------
-

Expected result:
----------------
-

Actual result:
--------------
-</pre>]]></description>
      <dc:date>2004-12-21T01:57:28+00:00</dc:date>
      <dc:creator>puRe &amp;#x61;&amp;#116; rednoize &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>HTML_Template_Flexy Feature/Change Request</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/2655">
      <title>HTML_Template_Flexy: Feature/Change Request 2655 [Verified] Sub variable in the variable</title>
      <link>http://pear.php.net/bugs/2655</link>
      <content:encoded><![CDATA[<pre>HTML_Template_Flexy Feature/Change Request
Reported by boci@...
2004-11-01T03:22:25+00:00
PHP: 4.3.9 OS: Linux Package Version: 

Description:
------------
Hi!
I need a sub variable feature (if it's possible);
example this:
{somevariable[subarray][_SESSION[var]]:h}

or this:
{somevariable[subarray][{_SESSION[var]}]:h}

Cow</pre>]]></content:encoded>
      <description><![CDATA[<pre>HTML_Template_Flexy Feature/Change Request
Reported by boci@...
2004-11-01T03:22:25+00:00
PHP: 4.3.9 OS: Linux Package Version: 

Description:
------------
Hi!
I need a sub variable feature (if it's possible);
example this:
{somevariable[subarray][_SESSION[var]]:h}

or this:
{somevariable[subarray][{_SESSION[var]}]:h}

Cow</pre>]]></description>
      <dc:date>2004-11-02T05:13:14+00:00</dc:date>
      <dc:creator>boci &amp;#x61;&amp;#116; dravanet &amp;#x64;&amp;#111;&amp;#x74; hu</dc:creator>
      <dc:subject>HTML_Template_Flexy Feature/Change Request</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/2258">
      <title>HTML_Template_Flexy: Feature/Change Request 2258 [Verified] can not specify Translation2 option parameters</title>
      <link>http://pear.php.net/bugs/2258</link>
      <content:encoded><![CDATA[<pre>HTML_Template_Flexy Feature/Change Request
Reported by aivarsak@...
2004-08-31T09:11:28+00:00
PHP: 4.3.8 OS: Win2k Package Version: 

Description:
------------
I am trying to use Flexy template engine with Translation2 (driver DB) supprot.

So there is no option to specify 'param' argument (i.e. mappings between table/field names and the ones used by this class) for Translation2 class through Flexy engine.

It seems impossible to make it (DB translation) work with flexy :(


Reproduce code:
---------------
Flexy option: 
'Translation2' =&gt; array ('driver' =&gt; 'DB'	  					,'options' =&gt; array(
    				'hostspec' =&gt; 'host',
    				'database' =&gt; 'dbname',
    				'phptype'  =&gt; 'mysql',
    				'username' =&gt; 'usr',
    				'password' =&gt; 'pws'))</pre>]]></content:encoded>
      <description><![CDATA[<pre>HTML_Template_Flexy Feature/Change Request
Reported by aivarsak@...
2004-08-31T09:11:28+00:00
PHP: 4.3.8 OS: Win2k Package Version: 

Description:
------------
I am trying to use Flexy template engine with Translation2 (driver DB) supprot.

So there is no option to specify 'param' argument (i.e. mappings between table/field names and the ones used by this class) for Translation2 class through Flexy engine.

It seems impossible to make it (DB translation) work with flexy :(


Reproduce code:
---------------
Flexy option: 
'Translation2' =&gt; array ('driver' =&gt; 'DB'	  					,'options' =&gt; array(
    				'hostspec' =&gt; 'host',
    				'database' =&gt; 'dbname',
    				'phptype'  =&gt; 'mysql',
    				'username' =&gt; 'usr',
    				'password' =&gt; 'pws'))</pre>]]></description>
      <dc:date>2004-11-02T05:13:44+00:00</dc:date>
      <dc:creator>aivarsak &amp;#x61;&amp;#116; inbox &amp;#x64;&amp;#111;&amp;#x74; lv</dc:creator>
      <dc:subject>HTML_Template_Flexy Feature/Change Request</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/1974">
      <title>HTML_Template_Flexy: Feature/Change Request 1974 [Verified] IF conditions like x==&quot;a&quot;</title>
      <link>http://pear.php.net/bugs/1974</link>
      <content:encoded><![CDATA[<pre>HTML_Template_Flexy Feature/Change Request
Reported by aemadrid@...
2004-07-24T19:33:42+00:00
PHP: 4.3.7 OS: Linux RH 2.1AS Package Version: 

Description:
------------
Would you consider adding support for IF conditions like x==&quot;a&quot;? It could have a syntax like flexy:if=&quot;x:#a#&quot;? It is kind of cumbersome to create switch case conditions with only simple true/false conditions like flexy:if=&quot;x&quot; or flexy:if=&quot;!x&quot; as it stands right now.</pre>]]></content:encoded>
      <description><![CDATA[<pre>HTML_Template_Flexy Feature/Change Request
Reported by aemadrid@...
2004-07-24T19:33:42+00:00
PHP: 4.3.7 OS: Linux RH 2.1AS Package Version: 

Description:
------------
Would you consider adding support for IF conditions like x==&quot;a&quot;? It could have a syntax like flexy:if=&quot;x:#a#&quot;? It is kind of cumbersome to create switch case conditions with only simple true/false conditions like flexy:if=&quot;x&quot; or flexy:if=&quot;!x&quot; as it stands right now.</pre>]]></description>
      <dc:date>2004-09-13T16:56:52+00:00</dc:date>
      <dc:creator>aemadrid &amp;#x61;&amp;#116; gmail &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>HTML_Template_Flexy Feature/Change Request</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/1351">
      <title>HTML_Template_Flexy: Feature/Change Request 1351 [Verified] Complex arguments</title>
      <link>http://pear.php.net/bugs/1351</link>
      <content:encoded><![CDATA[<pre>HTML_Template_Flexy Feature/Change Request
Reported by mclap@...
2004-05-06T08:28:34+00:00
PHP: 4.3.2 OS: FreeBSD Package Version: 

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=&quot;method(#some#,var.get(#data#)}&quot; in html tags.

2. Escaping of #
Sometimes it's necessary to pass '#' symbol as argument.


Thank you in advance.</pre>]]></content:encoded>
      <description><![CDATA[<pre>HTML_Template_Flexy Feature/Change Request
Reported by mclap@...
2004-05-06T08:28:34+00:00
PHP: 4.3.2 OS: FreeBSD Package Version: 

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=&quot;method(#some#,var.get(#data#)}&quot; in html tags.

2. Escaping of #
Sometimes it's necessary to pass '#' symbol as argument.


Thank you in advance.</pre>]]></description>
      <dc:date>2004-06-15T22:04:10+00:00</dc:date>
      <dc:creator>mclap &amp;#x61;&amp;#116; rrf &amp;#x64;&amp;#111;&amp;#x74; ru</dc:creator>
      <dc:subject>HTML_Template_Flexy Feature/Change Request</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/1247">
      <title>HTML_Template_Flexy: Feature/Change Request 1247 [Assigned] Some new feature request (Docs missing - toJavascript etc.)</title>
      <link>http://pear.php.net/bugs/1247</link>
      <content:encoded><![CDATA[<pre>HTML_Template_Flexy Feature/Change Request
Reported by boci@...
2004-04-20T22:19:11+00:00
PHP: Irrelevant OS: Linux Package Version: 

Description:
------------
Hi!

I think flexy needed some feature.
1. not in class method call (example global functions)
2. not in class variable insert ($GLOBALS, $_POST, $_SESSION) I think the right way this: {globals:variablename} or {post:variablename}
3. normal for support
4. if with validation set example: {if:value:othervalue=newvalue}
5. More-more-more documentation (more example, how to use the GetText support, toJavaScript usage, create own tags)

Question: how to use an external function (example sizeof()) in if?

I know this is a bug report but I don't know how can I ask.

Cow (ICQ: 73963523, MSN: boci13@hotmail.com)

Cow</pre>]]></content:encoded>
      <description><![CDATA[<pre>HTML_Template_Flexy Feature/Change Request
Reported by boci@...
2004-04-20T22:19:11+00:00
PHP: Irrelevant OS: Linux Package Version: 

Description:
------------
Hi!

I think flexy needed some feature.
1. not in class method call (example global functions)
2. not in class variable insert ($GLOBALS, $_POST, $_SESSION) I think the right way this: {globals:variablename} or {post:variablename}
3. normal for support
4. if with validation set example: {if:value:othervalue=newvalue}
5. More-more-more documentation (more example, how to use the GetText support, toJavaScript usage, create own tags)

Question: how to use an external function (example sizeof()) in if?

I know this is a bug report but I don't know how can I ask.

Cow (ICQ: 73963523, MSN: boci13@hotmail.com)

Cow</pre>]]></description>
      <dc:date>2004-07-24T04:44:27+00:00</dc:date>
      <dc:creator>boci &amp;#x61;&amp;#116; dravanet &amp;#x64;&amp;#111;&amp;#x74; hu</dc:creator>
      <dc:subject>HTML_Template_Flexy Feature/Change Request</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/1138">
      <title>HTML_Template_Flexy: Feature/Change Request 1138 [Verified] Request flexy:while attribute</title>
      <link>http://pear.php.net/bugs/1138</link>
      <content:encoded><![CDATA[<pre>HTML_Template_Flexy Feature/Change Request
Reported by ahundiak@...
2004-04-05T15:45:26+00:00
PHP: Irrelevant OS: Irrelevant Package Version: 

Description:
------------
Something like this:
&lt;tr flexy:while=&quot;item=items.next()&quot; &gt;
Should emit:
while($item = $items.next()) {

This feature will allow building tabular records on the fly as the template is being processed.</pre>]]></content:encoded>
      <description><![CDATA[<pre>HTML_Template_Flexy Feature/Change Request
Reported by ahundiak@...
2004-04-05T15:45:26+00:00
PHP: Irrelevant OS: Irrelevant Package Version: 

Description:
------------
Something like this:
&lt;tr flexy:while=&quot;item=items.next()&quot; &gt;
Should emit:
while($item = $items.next()) {

This feature will allow building tabular records on the fly as the template is being processed.</pre>]]></description>
      <dc:date>2005-05-27T01:48:30+00:00</dc:date>
      <dc:creator>ahundiak &amp;#x61;&amp;#116; ingr &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>HTML_Template_Flexy Feature/Change Request</dc:subject>
    </item>
</rdf:RDF>
