Module: Modular::MstRendering

Defined in:
lib/modular/mst_rendering.rb

Instance Method Summary collapse

Instance Method Details

#renderObject



6
7
8
9
10
# File 'lib/modular/mst_rendering.rb', line 6

def render
  Template.template_path = Rails.root + "app/views/components"
  Template.template_extension = 'mst'
  Template.render_file("./#{type}", @attributes).html_safe
end