Class: Laze::Renderers::JavascriptRenderer
- Inherits:
-
Renderer
- Object
- Renderer
- Laze::Renderers::JavascriptRenderer
- Defined in:
- lib/laze/renderers/javascript_renderer.rb
Overview
Render javascript source files to output files. Does nothing right now, just output the javascript directly.
Instance Method Summary collapse
-
#initialize(page) ⇒ JavascriptRenderer
constructor
:nodoc:.
- #render(locals = {}) ⇒ Object
Constructor Details
#initialize(page) ⇒ JavascriptRenderer
:nodoc:
6 7 8 9 |
# File 'lib/laze/renderers/javascript_renderer.rb', line 6 def initialize(page) #:nodoc: raise ArgumentError unless page.is_a?(Javascript) super end |
Instance Method Details
#render(locals = {}) ⇒ Object
11 12 13 |
# File 'lib/laze/renderers/javascript_renderer.rb', line 11 def render(locals = {}) string end |