Jeff Barczewski
2006-Jul-06 16:19 UTC
[Masterview-devel] Created a first version of the interactive parsing/rendering admin page
I created a first version of the interactive rendering/parsing admin page and committed. It currently lives off the main admin page with a link called Interactive Render. Clicking on that takes you to a page where you can type in some MV html and click render will show you on the same page below all the rhtml that it would render. I also created some sample that show up on the left side bar which if you click on them, they populate the text area and submit showing you the render. You can then edit the sample and re-render. We can probably dress things up a little and include more description in the page, but I wanted to at least get something up so you could see what I had in mind and we could flush it out further. The samples currently live in extras/sample_templates.rb (I couldn''t decide on the best place to put this so if you have a better idea we can move it). The syntax of the sample_templates.rb isn''t the greatest (might be able to improve it), but it allows one to create categories of examples, and then in each category, a hash of examples each with a description and the template text. We can put examples for each of the directives and some common usage patterns in there. I need to still improve handling of bad template text but otherwise it is functional. Let me know what you think. Jeff -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/masterview-devel/attachments/20060706/4b93a51c/attachment.html