module Sprockets::Paths
def append_path(path)
Append a `path` to the `paths` list.
def append_path(path) @trail.append_path(path) end
def clear_paths
completely wipe the paths list and reappend them in the order
There is no mechanism for reordering paths, so its best to
Clear all paths and start fresh.
def clear_paths @trail.paths.dup.each { |path| @trail.remove_path(path) } end
def extensions
# => [".js", ".css", ".coffee", ".sass", ...]
These extensions maybe omitted from logical path searches.
Returns an `Array` of extensions.
def extensions @trail.extensions.dup end
def paths
have no affect on the environment. See `append_path`,
Note that a copy of the `Array` is returned so mutating will
These paths will be used for asset logical path lookups.
Returns an `Array` of path `String`s.
def paths @trail.paths.dup end
def prepend_path(path)
Prepend a `path` to the `paths` list.
def prepend_path(path) @trail.prepend_path(path) end
def root
All relative paths are expanded with root as its base. To be
Returns `Environment` root.
def root @trail.root.dup end