On Nov 1, 2007 1:19 PM, Nico Ritsche <<a href="mailto:nico.ritsche@googlemail.com">nico.ritsche@googlemail.com</a>> 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 "wish" 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 </div>
<div>your page and less dummies would be needed. 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's an interesting idea but might be a little difficult to do since when we are parsing the html we don'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'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> </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> </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'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="layouts/mylayout.rhtml"...</p>
<p> ...mv:content="@content_for_layout"...</p>
<p> mv:generate_crud=" :model => 'myModel', :layout => 'myLayout.html', :crudLayout => 'myCrudLayout' "</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'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> defaults/naming conventions for the locations of the custom made layouta and crud styles. </div>
<div>There could be also parameters to select which crud actions and views should be generated and </div>
<div>which shouldn'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> </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> </div>
<div>Does this idea make sense? Is it possible to extend mv like this? I haven'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> </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> </div>
<div>Nico</div>
<div> </div>
<div>P.S.: How can 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>