src/compile_template.rb
# This compiles the javascripts and stylesheets into single files
# and then puts them in public/assets
This compiles the javascripts and stylesheets into single files
and then puts them in public/assets
This compiles the javascripts and stylesheets into single files and then puts them in public / assets
def compile_assets
    require 'sprockets'
    environment = Sprockets::Environment.new
    environment.append_path javascript_dir
    environment.append_path stylesheet_dir
    environment.append_path contrib_dir
    environment.context_class.class_eval { include Helper }
    manifest = Sprockets::Manifest.new(environment, manifest_dir)
    manifest.compile %w( application.js application.css )
  end
def compile_assets require 'sprockets' environment = Sprockets :: Environment . new environment . append_path javascript_dir environment . append_path stylesheet_dir environment . append_path contrib_dir environment . context_class . class_eval { include Helper } manifest = Sprockets :: Manifest . new ( environment , manifest_dir ) manifest . compile %w( application.js application.css ) end
This compiles the javascripts and stylesheets into single files
and then puts them in public/assets
This compiles the javascripts and stylesheets into single files and then puts them in public / assets