Module: PuppetPdf::Helpers::View

Defined in:
lib/puppet_pdf/helpers/view.rb

Instance Method Summary collapse

Instance Method Details

#puppet_javascript_script_tag(asset) ⇒ Object



19
20
21
22
23
24
25
26
27
28
29
# File 'lib/puppet_pdf/helpers/view.rb', line 19

def puppet_javascript_script_tag(asset)
  asset_tag = "    <script type='application/javascript'>\n      \#{asset_content(asset)}\n    </script>\n  TAG\n\n  asset_tag\n    .force_encoding('utf-8')\n    .html_safe\nend\n"


7
8
9
10
11
12
13
14
15
16
17
# File 'lib/puppet_pdf/helpers/view.rb', line 7

def puppet_stylesheet_link_tag(asset)
  asset_tag = "    <style type='text/css'>\n      \#{asset_content(asset)}\n    </style>\n  TAG\n\n  asset_tag\n    .force_encoding('utf-8')\n    .html_safe\nend\n"