I'm not sure why you'd expect that to work... that would just generate an <include> tag, which isn't valid HTML.
If you need to include content in a Haml file, that's the job of Ruby helpers. If you need to load it from static HTML on disk, then you'll probably have to write your own. Where to put these helpers depends on the web framework you're using. On Sun, Jan 24, 2010 at 5:31 PM, Jon Hancock <[email protected]> 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 post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected] <haml%[email protected]>. > For more options, visit this group at > http://groups.google.com/group/haml?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Haml" 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/haml?hl=en.
