Can't you just render the html files as a partial. Rails will take care of 
figuring out if it is html/haml, etc.

= render 'some_file'

where _some_file.html is a pure html file.

This works for me, if I truly understand the question correctly.

On Sunday, January 24, 2010 8:31:23 PM UTC-5, Jon Hancock wrote:
>
> I have thousands of html files (simple, all static text) which I need
> to embed in haml.  Currently, I am getting around the problem by
> rendering a page and then doing an AJAX call to get the embedded html
> content.  This approach is somewhat efficient as I can use send_file
> to serve up the embedded content, but there are cases when I can't use
> this approach.
>
> I tried this (which I don't see in the haml docs):
>
> %include{ :file => "#{html_file_path}" }
>
> This not work, but it doesn't give me errors either.
>
> Any ideas?
> thanks, Jon
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Haml" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to haml+unsubscr...@googlegroups.com.
To post to this group, send email to haml@googlegroups.com.
Visit this group at http://groups.google.com/group/haml?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to