<br><br><div><span class="gmail_quote">On 3/21/07, <b class="gmail_sendername">Frisby Jon</b> &lt;<a href="mailto:jfrisby@mrjoy.com">jfrisby@mrjoy.com</a>&gt; wrote:</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></blockquote>
<div><br><br><br>Thanks Jon. I will add some tests around this and make the fix. <br><br>&nbsp;</div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Second, a how-to question.&nbsp;&nbsp;If I have in-line CSS, like so:<br>&lt;style type=&quot;text/css&quot;&gt;<br>#navigation a.home {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;background:url(/images/arrow.gif);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;background-position:bottom center;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;background-repeat:no-repeat;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;color:#5CC9FF;<br>}<br>&lt;/style&gt;<br><br>How do I abstract out the URL in there so that it works for both the<br>designer and when used through Rails?</blockquote><div><br>
<br>Well we currently have this type of functionality for external css, but sounds like we do need to consider additional options for both internal styles and styles with images. Let me think about it and see what I can come up with.
<br><br>&nbsp;</div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Third, another how-to question.&nbsp;&nbsp;How do I make something like this work:<br>
<br>&lt;a href=&quot;index.html&quot; mv:link_to=&quot;:action =&gt; &#39;index&#39;&quot;&gt;&lt;img<br>src=&quot;../../../public/images/home.gif&quot; mv:image_tag=&quot;home.gif&quot;<br>width=&quot;21&quot; height=&quot;21&quot; id=&quot;home&quot; alt=&quot;go to home page&quot; /&gt;&lt;/a&gt;
<br><br>Right now, it&#39;s choking out pretty hard by generating code like so:<br><br>&lt;%= link_to( { &#39;&lt;%= image_tag( &#39;home.gif&#39;, :alt =&gt; &quot;go to home<br>page&quot;, :height =&gt; 21, :id =&gt; &quot;home&quot;, :width =&gt; 21 ) %&gt;&#39; }, :action =&gt;
<br>&#39;index&#39; ) %&gt;<br><br></blockquote></div><br><br>I see what you mean. We need a way to accomodate things besides just text since images are a common thing used for links too. I&#39;ll take a look at this too.
<br><br>Thanks for the bug fix and feedback. I&#39;ll see what I can do.<br><br>Jeff<br>