<div>Hi Deb,</div>
<div>&nbsp;</div>
<div>thanks for your answer!</div>
<div>&nbsp;</div>
<div>I got this working now:</div>
<div>&nbsp;</div>
<div>&lt;li mv:attr=&quot;:class =&gt; #{ controller.controller_name == &#39;home&#39; ? &#39;selected&#39; : &#39;not_selected&#39;}&quot;&gt;<br>&nbsp;&lt;a href=&quot;../home/index.html&quot; mv:link_to=&quot;:controller =&gt; &#39;home&#39;, :action =&gt; &#39;index&#39;&quot;&gt;Home&lt;/a&gt;&lt;/li&gt;&nbsp;&nbsp; 
</div>
<div>&nbsp;</div>
<div>However, I couldn&#39;t get your other idea working:</div>
<div>&nbsp;</div>
<div>&lt;li&gt; &lt;a href=&quot;../home/index.html&quot; mv:link_to=&quot;:controller =&gt; &#39;home&#39;, :action =&gt; &#39;index&#39;&quot;&gt;{{{= controller.controller_name == &#39;home&#39; ? &#39;&lt;span class=&quot;selected&quot;&gt;Home&lt;/span&gt;&#39; : &#39;Home&#39; }}}&lt;/a&gt;&lt;/li&gt; 
</div>
<div>&nbsp;</div>
<div>This doesn&#39;t compile. Also, if I this was working, the static html would be wrong, as the Link text &quot;Home&quot; would be missing, right? So I would have to include a&nbsp; dummy element.</div>
<div>However, I don&#39;t now how to get that working either: I tried to format the &quot;Home&quot; menu option using the selected class in the static html page,</div>
<div>just to get an idea of how&nbsp;a selected menu will look like. I tried this:</div>
<div>&nbsp;</div>
<div>&nbsp; 
<div>&lt;li mv:attr=&quot;:class =&gt; #{ controller.controller_name == &#39;home&#39; ? &#39;selected&#39; : &#39;not_selected&#39;}&quot;&gt;<br>&nbsp;&lt;a href=&quot;../home/index.html&quot; mv:link_to=&quot;:controller =&gt; &#39;home&#39;, :action =&gt; &#39;index&#39;&quot;&gt; 
<font color="#3333ff">&lt;span class=&quot;selected&quot; mv:replace=&quot;&quot;&gt;Home&lt;/span&gt;</font> &lt;/a&gt;&lt;/li&gt;&nbsp;&nbsp;</div>
<div>&nbsp;</div>
<div>But it doesn&#39;t compile. My guess is&nbsp;there is a conflict with the mv:link_to directive which just expects a string, not a string with another nested mv directive.</div>
<div>&nbsp;</div>
<div>Anyway, I&#39;m already quite happy with my current solution, thanks.</div>
<div>&nbsp;</div>
<div>Something else I noticed:</div>
<div>&nbsp;</div>
<div>Why does masterview change the formatting of my html? For instance </div>
<div>&nbsp;</div>
<div>&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot; &quot;<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd%22%3E" target="_blank">http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&gt;
</a></div>
<div>&lt;html lang=&quot;en&quot; mv:import=&quot;layouts/admin.rhtml&quot; xml:lang=&quot;en&quot; xmlns=&quot;<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.w3.org/1999/xhtml" target="_blank">
http://www.w3.org/1999/xhtml</a>&quot;&gt;</div>
<div>&nbsp;</div>
<div>becomes </div>
<div>&nbsp;</div>
<div>&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot; &quot;<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd%22%3E%3Chtml" target="_blank">
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&gt;&lt;html </a>lang=&quot;en&quot; mv:import=&quot;layouts/admin.rhtml&quot; xml:lang=&quot;en&quot; xmlns=&quot;<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.w3.org/1999/xhtml" target="_blank">
http://www.w3.org/1999/xhtml</a>&quot;&gt;</div>
<div>&nbsp;</div>
<div>so the linebreak is ignored.</div>
<div>&nbsp;</div>
<div>I think I saw such more or less sutbtle changes in other places as well. But I can&#39;t remember where right now. I think tabs were ignored.</div>
<div>I&#39;d prefer the formatting not beeing touched by masterview.</div>
<div>&nbsp;</div>
<div>Kind Regards,</div>
<div>Nico</div>
<div>&nbsp;</div>
<div>&nbsp;</div></div>