Class: JavaScript

Inherits:
Nitro::Element show all
Defined in:
lib/nitro/element/java_script.rb

Instance Attribute Summary

Attributes inherited from Nitro::Element

#_children, #_named, #_parent, #_text, #_view

Instance Method Summary collapse

Methods inherited from Nitro::Element

#add_child, #close, #content, #initialize, name, #open, #render_children

Constructor Details

This class inherits a constructor from Nitro::Element

Instance Method Details

#renderObject



4
5
6
7
8
9
10
11
12
# File 'lib/nitro/element/java_script.rb', line 4

def render
  %~
  <script type="text/javascript" language="javascript">
  // <![CDATA[
    #{content}
  // ]]>
  </script> 
  ~      
end