Module: LoDashAssets

Extended by:
LoDashAssets
Included in:
LoDashAssets
Defined in:
lib/lodash-assets.rb,
lib/lodash-assets/tilt.rb,
lib/lodash-assets/lodash.rb,
lib/lodash-assets/version.rb

Defined Under Namespace

Modules: LoDash Classes: Tilt

Constant Summary collapse

DEFAULT_PATH_PREFIX =
'templates'.freeze
DEFAULT_TEMPLATE_NAMESPACE =
'LoDashTemplates'.freeze
DEFAULT_TEMPLATE_EXTENTIONS =
%w( lodash_template ).freeze
VERSION =
"0.0.1"

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#path_prefixObject



19
20
21
# File 'lib/lodash-assets.rb', line 19

def path_prefix
  @path_prefix ||= DEFAULT_PATH_PREFIX
end

#template_extensionsObject



27
28
29
# File 'lib/lodash-assets.rb', line 27

def template_extensions
  @template_extensions ||= DEFAULT_TEMPLATE_EXTENTIONS
end

#template_namespaceObject



23
24
25
# File 'lib/lodash-assets.rb', line 23

def template_namespace
  @template_namespace ||= DEFAULT_TEMPLATE_NAMESPACE
end

Instance Method Details

#configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (LoDashAssets)

    the object that the method was called on



15
16
17
# File 'lib/lodash-assets.rb', line 15

def configure
  yield(self)
end

#sprocketsObject

Register template extention(s) with Sprockets



33
# File 'lib/lodash-assets.rb', line 33

require 'sprockets'