rubybox
2010-Aug-04 14:02 UTC
Output haml document tree & subfolders to another directory as html files
I building themes with haml for a CMS based on php and zend framework. Although I could implement haml directly into it, I rather use ruby and therefore try to find a solution for this: Go true a complete document tree and all subfolders, these folders contain haml files Then output each haml file in another directory like /output with preserve of the orginal document tree but as a saved html file /haml_templates/ home.html.haml about.html.haml /subdir header.html.haml I would run some tool or a ruby script that would create: /haml_exported/ home.html about.html /subdir header.html Is there something out I could use for above problem? I thought of creating a ruby script for this but that is rather to advanched at the moment for my ruby on rails skills. Hope to find a solution for this, please let me know if you have an idea! Thanks in advanche! -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Marnen Laibow-Koser
2010-Aug-04 14:54 UTC
Re: Output haml document tree & subfolders to another directory as html files
rubybox wrote:> I building themes with haml for a CMS based on php and zend > framework. > Although I could implement haml directly into it, I rather use ruby > and therefore try to find a solution for this:Seems like the wrong tool. Why not just use pHaml with the CMS? If not, then perhaps something like StaticMatic is what you''re looking for. Best, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.