Class: Laze::Renderers::JavascriptRenderer

Inherits:
Renderer
  • Object
show all
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

Constructor Details

#initialize(page) ⇒ JavascriptRenderer

:nodoc:

Raises:

  • (ArgumentError)


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