Class: Muwu::RenderMarkupToHtml

Inherits:
Object
  • Object
show all
Defined in:
lib/muwu/render_html/render_markup_to_html.rb

Instance Method Summary collapse

Constructor Details

#initialize(project) ⇒ RenderMarkupToHtml

Returns a new instance of RenderMarkupToHtml.



13
14
15
# File 'lib/muwu/render_html/render_markup_to_html.rb', line 13

def initialize(project)
  @project = project
end

Instance Method Details

#render(filename) ⇒ Object



22
23
24
25
26
27
28
29
# File 'lib/muwu/render_html/render_markup_to_html.rb', line 22

def render(filename)
  case File.extname(filename).downcase
  when '.md'
    render_md(filename)
  when '.haml'
    render_haml(filename)
  end
end