Module: Lash

Defined in:
lib/lash.rb,
lib/lash/files.rb,
lib/lash/railtie.rb,
lib/lash/version.rb,
lib/lash/assets_host.rb,
lib/lash/bundle_helper.rb,
lib/lash/sprite_bundler.rb,
lib/lash/closure_minifier.rb,
lib/lash/java_script_bundler.rb,
lib/lash/java_script_minifier.rb

Defined Under Namespace

Modules: AssetsHost, BundleHelper, Files Classes: ClosureMinifier, JavaScriptBundler, JavaScriptMinifier, Railtie, SpriteBundler

Constant Summary collapse

VERSION =
"1.0.3"

Class Method Summary collapse

Class Method Details

.lash_optionsObject

Options for bundle helpers are optional and get their default values from the Lash::ViewHelpers.lash_options hash. You can write to this hash to override default options on the global level:

Lash.lash_options[:unicorns] = 'run free'


8
# File 'lib/lash.rb', line 8

def self.lash_options() @lash_options; end

.lash_options=(options) ⇒ Object

Overrides the default lash_options

Parameters:

  • options (Hash)

    a customizable set of options

Options Hash (options):

  • :use_asset_servers (String)

    Use asset server subdomain hack to allow multiple simultaenous connections. See Lash::AssetsHost.resolve_static_asset_server_for_source.

  • :use_asset_servers_in_ssl (String)

    Use asset server subdomain hack even over SSL. Requires a wildcard certificate.

  • :use_sass (String)

    Support SASS

  • :use_git_asset_id (String)

    Use GIT repro id for cachebusting asset id

  • :closure_compiler (String)

    Path to custom version of google's closure compiler.



17
# File 'lib/lash.rb', line 17

def self.lash_options=(options) @lash_options = options; end