On 1/31/07, <b class="gmail_sendername">Ed Howland</b> &lt;<a href="mailto:ed.howland@gmail.com">ed.howland@gmail.com</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I ran into this before, but I can&#39;t find any email from me about it.<br>Sorry if this is a repeat, but the problem persists in MV 0.3.1<br><br>If you have a helper method that you want to evaluate in a construct like:
<br><br>&lt;div mv:attr=&quot;:id =&gt; #{myhelper(arg)}&quot;&gt;&lt;/div&gt;<br><br>it legitimately renders it so:<br>&lt;div id=&quot;&lt;%= myhelper(arg) %&gt;&quot;&gt;&lt;/div&gt;<br><br>But if you increase the argument count to more than 1, 
e.g.:<br>&lt;div mv:attr=&quot;:id =&gt; #{myhelper(arg, 1)}&quot;&gt;<br><br>It renders:<br>&lt;div&gt;&lt;/div&gt;</blockquote><div><br></div></div>I have tested this in the trunk and it is resolved. (We had fixed one of the parsing functions)
<br><br>So you can get this with the next release, which is due out any time now. <br><br>It&#39;s also available in the trunk.<br><br>I added this test to insure that it works<br><br>&nbsp; def test_attr_eval_helper_with_multi_params
<br>&nbsp;&nbsp;&nbsp; template = &lt;&lt;-END<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;div mv:generate=&#39;foo/bar&#39;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;span class=&quot;red&quot; mv:attr=&quot;:id =&gt; #\{myhelper(arg, 1)\}&quot;&gt;foo bar&lt;/span&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/div&gt;
<br>&nbsp;&nbsp;&nbsp; END<br>&nbsp;&nbsp;&nbsp; expected = {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#39;foo/bar&#39; =&gt; &quot;&lt;div&gt;&lt;span class=\&quot;red\&quot; id=\&quot;&lt;%= myhelper(arg, 1) %&gt;\&quot;&gt;foo bar&lt;/span&gt;&lt;/div&gt;&quot;<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; assert_template_result expected, template
<br>&nbsp; end<br><br><br>Blessings,<br><br>Jeff<br>