On 3/21/07, <b class="gmail_sendername">Frisby Jon</b> &lt;<a href="mailto:jfrisby@mrjoy.com">jfrisby@mrjoy.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;">
First, the bug.&nbsp;&nbsp;In parser.rb, this:<br>&nbsp;&nbsp;&nbsp;&nbsp; def generate_replace(value)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; @renderer.append_raw ERB_EVAL_START+value+ERB_EVAL_END<br>&nbsp;&nbsp;&nbsp;&nbsp; end<br><br>Should be:<br>&nbsp;&nbsp;&nbsp;&nbsp; def generate_replace(value)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; @renderer.append_raw
 ERB_CONTENT_START+value+ERB_EVAL_END<br>&nbsp;&nbsp;&nbsp;&nbsp; end<br><br>In order to behave as documented at:<br><a href="http://masterview.org/directives.html#mv_gen_replace">http://masterview.org/directives.html#mv_gen_replace</a><br><br>
</blockquote></div><br><br>I have added a couple tests and patched mv:gen_replace to use &lt;%= %&gt; as it should have rather than &lt;% %&gt;<br><br>The code is checked into the trunk at svn://rubyforge.org/var/svn/masterview/trunk/masterview and will be rolled up into a new gem (
0.3.3) when we have a few more items in there for a release.<br><br>Thanks to Jon for identifying the problem!<br><br>Jeff<br>