Class: Elisp2any::HTMLRenderer

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/elisp2any/html_renderer.rb

Instance Method Summary collapse

Constructor Details

#initialize(file, css: nil) ⇒ HTMLRenderer

Returns a new instance of HTMLRenderer.



11
12
13
14
# File 'lib/elisp2any/html_renderer.rb', line 11

def initialize(file, css: nil)
  @file = file
  @css = css || "https://unpkg.com/mvp.css"
end

Instance Method Details

#renderObject



16
17
18
# File 'lib/elisp2any/html_renderer.rb', line 16

def render
  erb_render('index.html.erb')
end