On 7/3/07, <b class="gmail_sendername">Jeff Barczewski</b> &lt;<a href="mailto:jeff.barczewski@gmail.com">jeff.barczewski@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;">
<span class="q">On 7/2/07, <b class="gmail_sendername">James Britt</b> &lt;<a href="mailto:james.britt@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">james.britt@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 may be doing something wrong, but I can&nbsp;&nbsp;not get my rhtml view files<br>re-built on-demand.<br><br>For&nbsp;&nbsp;example, if I delete all the rhtml that have been generated from<br>MasterView HTML files, and call the rake task&nbsp;&nbsp;mv:rebuild_all, I do not
<br>see the rhtml files recreated.<br><br>If I go through the MasterView admin Web page it seems to work, but only<br>if I go and alter the html files. (Running &#39;touch&#39; on the files doesn&#39;t<br>help.)<br><br><br>

It seems that the rhtml files do not get created unless MasterView<br>thinks the source HTML has changed, even if the rhtml files do not<br>exist.&nbsp;&nbsp;And then only via the Web tool.</blockquote><div><br><br></div></div></span>
I&#39;ll take a look and see if I can figure out what might be going wrong. Thanks for mentioning it.
</blockquote><div><br></div></div><br><br>James,<br><br>I took a look and the code appears to be functioning properly, however I believe our documentation wasn&#39;t clear about which rake task does what so this may be the source of the problem.
<br><br>rake mv:parse&nbsp; # is the one which generates the rhtml files<br><br>mv:rebuild and mv:rebuild_all actually only update the HTML template files (if they have outdated imports) not the rhtml that is generated<br><br>
I guess the naming of these wasn&#39;t the greatest. <br><br>I have updated the docs on MV website to clarify this a little and have made a change for the next release to use the rake task name mv:generate_all_rhtml (deprecating mv:parse) so that hopefully this will be a little clearer to people in the future.
<br><br>For now you can use <br>rake mv:parse <br><br>in next version 0.3.4 this will be the preferred task <br>rake mv:generate_all_rhtml<br><br>Sorry for the confusion. Also note that if you want files generated to file system you will need to set the 
config.generate_rhtml_files = true in config/masterview/settings.rb or the appropriate config/masterview/environments/*.rb, otherwise the rhtml is generated only internally.<br><br>PS. I haven&#39;t forgotten about the sidebar content_for issue, just haven&#39;t come up with a good approach to solving it yet.
<br><br>Let me know if you have any additional problems.<br><br>Blessings,<br><br>Jeff<br><br clear="all"><br>-- <br>Jeff Barczewski, MasterView core team<br>Inspired Horizons Ruby on Rails Training and Consultancy<br><a href="http://inspiredhorizons.com/">
http://inspiredhorizons.com/</a>