DAZ wrote:
> How would you go about creating a template language that could be used
> to allow access to *some* helpers for a CMS-style app?
> 
> For example if there is a text field called content, I can use Textile
> or (my preference) Markdown to allow easy html generation, but they
> don't allow for any conditional markup based on the page. Is there any
> way to extend these languages by allowing access to some of the helper
> methods.
> 
> I was thinking something like:
> 
> % image(bart.png) %
> 
> % breadcrumbs %
> 
> % nav_menu(child_pages) %
> 
> Does something like this exist? Would it be better to try to extend
> markdown or write one from scratch? How would you go about writing
> one?
> 
> cheers,
> 
> DAZ


Have you checked liquid? There is a nice screen cast @ railcasts:
http://railscasts.com/episodes/118-liquid

-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to