class F7::Generators::InstallGenerator
Public Instance Methods
add_assets()
click to toggle source
# File lib/generators/f7/install/install_generator.rb, line 9 def add_assets js_manifest = 'app/assets/javascripts/application.js' if File.exist?(js_manifest) insert_into_file js_manifest, "//= require framework7\n", :before => "//= require jquery\n" else copy_file "application.js", js_manifest end css_manifest = 'app/assets/stylesheets/application.css' if File.exist?(css_manifest) insert_into_file css_manifest, " *= require framework7\n *= require framework7.themes\n", :before => " *= require_self" else copy_file "application.css", css_manifest end end