Module: Vines::Web

Defined in:
lib/vines/web.rb,
lib/vines/web/version.rb,
lib/vines/web/command/init.rb,
lib/vines/web/command/install.rb

Defined Under Namespace

Modules: Command

Constant Summary collapse

VERSION =
'0.1.1'

Class Method Summary collapse

Class Method Details

.pathsObject

Return javascript and stylesheet asset paths to be added to a sprockets environment. This allows the lib and vendor javascript bundles to be shared by other apps.

env = Sprockets::Environment.new
Vines::Web.paths.each {|path| env.append_path path }

Returns an Array of String paths.



16
17
18
19
20
21
# File 'lib/vines/web.rb', line 16

def self.paths
  root = File.expand_path('../../..', __FILE__)
  js = '%s/app/assets/javascripts' % root
  css = '%s/app/assets/stylesheets' % root
  [js, css]
end