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 = <<~TAG
    <script type='application/javascript'>
      #{asset_content(asset)}
    </script>
  TAG

  asset_tag
    .force_encoding('utf-8')
    .html_safe
end


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 = <<~TAG
    <style type='text/css'>
      #{asset_content(asset)}
    </style>
  TAG

  asset_tag
    .force_encoding('utf-8')
    .html_safe
end