Method: Brief::Document::Rendering#script_preamble
- Defined in:
- lib/brief/document/rendering.rb
#script_preamble ⇒ Object
31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/brief/document/rendering.rb', line 31 def script_preamble <<-EOF <script type="text/javascript"> if(typeof(global)==="undefined"){ global = window } global.Brief = global.Brief || {} Brief.documents = Brief.documents || {} </script> EOF end |