Module: Sinatra::Fontaine::Bootstrap::AssetsHelper

Defined in:
lib/fontaine/bootstrap.rb

Instance Method Summary collapse

Instance Method Details

#bootstrap_fontaineObject



34
35
36
# File 'lib/fontaine/bootstrap.rb', line 34

def bootstrap_fontaine
  bootstrap_js
end

#bootstrap_jsObject



38
39
40
41
42
43
44
# File 'lib/fontaine/bootstrap.rb', line 38

def bootstrap_js
  output = ''
  Assets::ASSETS[:js].each do |file, _|
    output += '<script type="text/javascript" src="%s"></script>' % url('/js/%s' % file)
  end
  output
end