Method: Moonrope::DocContext#partial

Defined in:
lib/moonrope/doc_context.rb

#partial(name, attributes = {}) ⇒ Object



76
77
78
79
# File 'lib/moonrope/doc_context.rb', line 76

def partial(name, attributes = {})
  erb = self.class.new(@generator, @options.merge(:vars => attributes))
  erb.render(File.join(@generator.template_root_path, "_#{name}.erb"))
end