Class: Elisp2any::HTMLRenderer
- Inherits:
-
Object
- Object
- Elisp2any::HTMLRenderer
- Extended by:
- Forwardable
- Defined in:
- lib/elisp2any/html_renderer.rb
Instance Method Summary collapse
-
#initialize(file, css: nil) ⇒ HTMLRenderer
constructor
A new instance of HTMLRenderer.
- #render ⇒ Object
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
#render ⇒ Object
16 17 18 |
# File 'lib/elisp2any/html_renderer.rb', line 16 def render erb_render('index.html.erb') end |