Sha256: 5ac79be5eb21815bb8754292d99aa1229f94bd8765e5034ad71b1f6570d28386

Contents?: true

Size: 854 Bytes

Versions: 32

Compression:

Stored size: 854 Bytes

Contents

# SMACSS
class Middleman::Templates::Smacss < Middleman::Templates::Base

  class_option "css_dir",
    :default => "stylesheets",
    :desc    => 'The path to the css files'
  class_option "js_dir",
    :default => "javascripts",
    :desc    => 'The path to the javascript files'
  class_option "images_dir",
    :default => "images",
    :desc    => 'The path to the image files'
    
  # Template files are relative to this file
  # @return [String]
  def self.source_root
    File.dirname(__FILE__)
  end

  # Output the files
  # @return [void]
  def build_scaffold!
    template "shared/config.tt", File.join(location, "config.rb")
    directory "smacss/source", File.join(location, "source")
    empty_directory File.join(location, "source")
  end
end

# Register the template
Middleman::Templates.register(:smacss, Middleman::Templates::Smacss)

Version data entries

32 entries across 32 versions & 2 rubygems

Version Path
middleman-core-3.2.1 lib/middleman-more/templates/smacss.rb
middleman-core-3.2.0 lib/middleman-more/templates/smacss.rb
middleman-core-3.1.6 lib/middleman-more/templates/smacss.rb
middleman-core-3.1.5 lib/middleman-more/templates/smacss.rb
middleman-core-3.1.4 lib/middleman-more/templates/smacss.rb
middleman-core-3.1.3 lib/middleman-more/templates/smacss.rb
middleman-core-3.1.2 lib/middleman-more/templates/smacss.rb
middleman-core-3.1.1 lib/middleman-more/templates/smacss.rb
middleman-core-3.1.0 lib/middleman-more/templates/smacss.rb
middleman-core-3.1.0.rc.4 lib/middleman-more/templates/smacss.rb
middleman-core-3.1.0.rc.3 lib/middleman-more/templates/smacss.rb
middleman-core-3.1.0.rc.2 lib/middleman-more/templates/smacss.rb
middleman-core-3.1.0.rc.1 lib/middleman-more/templates/smacss.rb
middleman-more-3.0.14 lib/middleman-more/templates/smacss.rb
middleman-more-3.1.0.beta.3 lib/middleman-more/templates/smacss.rb
middleman-more-3.1.0.beta.2 lib/middleman-more/templates/smacss.rb
middleman-more-3.1.0.beta.1 lib/middleman-more/templates/smacss.rb
middleman-more-3.0.13 lib/middleman-more/templates/smacss.rb
middleman-more-3.0.12 lib/middleman-more/templates/smacss.rb
middleman-more-3.0.12.pre.1 lib/middleman-more/templates/smacss.rb