On 8/16/07, <b class="gmail_sendername">James Britt</b> <<a href="mailto:james@neurogami.com">james@neurogami.com</a>> 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;">
Jeff Barczewski wrote:<br>> already.<br>><br>> I am partially through adding some tests and implementing. Will try to<br>> wrap this up by tomorrow if possible and will let you test it out to see<br>> if if solves your problems.
<br>><br>> I'll shoot you an email when it is ready to roll.</blockquote><div><br><br></div></div>James,<br><br>Well I finally was able to get the desired functionality with this. <br><br>If you pull the trunk
<br><br><pre class="code">svn://rubyforge.org/var/svn/masterview/trunk/masterview</pre>
<br>then it should solve your issue with being able to specify different locals, collections, or objects between each use of gen_partial and import_render. It will also allow you to reuse a partial on the same page with different values.
<br><br>I had to adjust the rebuilding templates system so that it would retain the proper values as well but I like the result. <br><br>I added some tests to verify operation and it seems to be doing what it should.<br><br>
With this version you should be able to do stuff like<br><br><div mv:gen_partial=":partial => 'foo/bar', :locals => {:title => 'page1'}"> on one template<br><br>and in another<br><br>
<div mv:import_render=":partial => 'foo/bar', :locals => {:title => 'page2'}"><br><br>or even reuse the template with more import_renders on the same page.<br><br><br>Let me know if this fixes things for you and/or causes any other problems.
<br><br><br>PS. I still need to look into the cruise control issue, will have to get that setup first to look into it.<br><br>Jeff<br><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>