On Nov 1, 2007 1:19 PM, Nico Ritsche &lt;<a href="mailto:nico.ritsche@googlemail.com">nico.ritsche@googlemail.com</a>&gt; wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div>Anyway, my next &quot;wish&quot; would be to have a possibility to let masterview</div>
<div>generate html files considering the current database content. </div>
<div>This would be very useful, as it comes closer to true wysiwyg editing of&nbsp;</div>
<div>your page and less dummies would be needed.&nbsp;So tables would be filled </div>
<div>with the actual table data instead of dummies. Would that be difficult to </div>
<div>implement? Or is it possible to extend mv with this functionality?</div></div></blockquote><div><br><br>That&#39;s an interesting idea but might be a little difficult to do since when we are parsing the html we don&#39;t yet have access to all the runtime objects. It seems like it would involve marrying much more tightly to Rails if we wanted to do this. 
<br><br>Currently we&#39;d prefer to stay a little bit abstracted so that we can eventually use MasterView with all sorts of web frameworks. (Rails is our most feature rich implementation, but I would envision us working with other Ruby frameworks in the future). 
<br><br>&nbsp;</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div>
<div>&nbsp;</div>
<div>Another thing that would be very useful for me to have is a way of using</div>
<div>my own layout with mv scaffolding. Ideally I&#39;d like to be able to do </div>
<div>something like the following:</div>
<ul>
<li>Create my layout, including navigation etc.</li>
<li>Define a standard way crud views and partials are generated from models </li>
<li>Using this standard for any further model to quickly setup new model views, like this:</li></ul>
<p>...mv:import=&quot;layouts/mylayout.rhtml&quot;...</p>
<p>&nbsp;&nbsp; ...mv:content=&quot;@content_for_layout&quot;...</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mv:generate_crud=&quot;&nbsp;:model =&gt; &#39;myModel&#39;, :layout =&gt; &#39;myLayout.html&#39;,&nbsp;:crudLayout =&gt; &#39;myCrudLayout&#39;&nbsp;&quot;</p>
<div>This would then generate the list view of the model in place, separate files for new, edit, </div>
<div>view and delete, using my custom templates and the corresponding actions. That, would be great! </div>
<div>Right now I&#39;m manually typing in the code for all the different models I have, copy and pasting </div>
<div>pieces from the mv scaffolds and adjusting them to my needs, which is quite tedious and not all too dry.</div>
<div>What I have in mind is a kind of a finer grained custom scaffolding. There could be also</div>
<div>&nbsp;defaults/naming conventions for the locations of&nbsp;&nbsp;the custom made layouta and crud styles.&nbsp;</div>
<div>There could be also parameters to select which crud&nbsp;actions and views should be generated and </div>
<div>which shouldn&#39;t. Also it would be great if the controller could be specified if not the default is used.</div>
<div>Well, the possibilities seem endless... ;-)</div></div></blockquote><div><br><br>Thanks for the input and ideas. I agree that it would be really nice to be able to do something like this. I will add the ideas to our todo list for future enhancements. If there were only more hours in the day :-)
<br><br>&nbsp;</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div>
<div>&nbsp;</div>
<div>Does this idea make sense? Is it possible to extend mv like this? I haven&#39;t looked much into the </div>
<div>developers section yet.</div></div></blockquote><div><br><br>Yes, I think this would be useful in some environments. Whatever can reduce the turn around time in creating apps is a win in my book. <br><br>&nbsp;</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div>
<div>&nbsp;</div>
<div>Nico</div>
<div>&nbsp;</div>
<div>P.S.: How can&nbsp;I post to a thread instead of making a new one? Do I simply need to use the same subject</div>
<div>text? I try...</div></div></blockquote><div><br><br>Yes, if you reply to the thread so that it keeps the same subject (ignoring the re:) then it will go into the same thread. If you change the subject then it will be a new thread.
</div></div><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>