I'm fresh off a couple of haml tutorials, but I can't figure out how to include an html file (directly) into a haml document. For example:
a.haml
.header
hello
= render :partial => "b.html"
b.html
world
Expected output:
<div class='header'>
hello
world
</div>
I've tried = render "b.html"
as well. I get as an error
haml a.haml --trace
test.haml:8:in `block in render': undefined method `render' for #<Object:0x000000018b2508> (NoMethodError)
from /usr/lib/ruby/vendor_ruby/haml/engine.rb:129:in `eval'
from /usr/lib/ruby/vendor_ruby/haml/engine.rb:129:in `render'
from /usr/lib/ruby/vendor_ruby/haml/exec.rb:313:in `process_result'
from /usr/lib/ruby/vendor_ruby/haml/exec.rb:43:in `parse'
from /usr/lib/ruby/vendor_ruby/haml/exec.rb:23:in `parse!'
from /usr/bin/haml:9:in `<main>'
Which sounds like I need to include a library to use "render" or install a library. How do I dump the unformatted text of b.html
into the document where I want it?