Class: Nitro::Element::Javascript

Inherits:
Object
  • Object
show all
Defined in:
lib/nitro/element/javascript.rb

Overview

A javescript helper.

Instance Method Summary collapse

Instance Method Details

#renderObject



8
9
10
11
12
13
14
15
16
# File 'lib/nitro/element/javascript.rb', line 8

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