Class: Middleman::Templates::Smacss
- Defined in:
- lib/middleman-more/templates/smacss.rb
Overview
SMACSS
Class Method Summary collapse
-
.source_root ⇒ String
Template files are relative to this file.
Instance Method Summary collapse
-
#build_scaffold!
Output the files.
Methods inherited from Base
gemfile_template, #generate_bundler!, #generate_gitignore!, #generate_rack!, #initialize
Constructor Details
This class inherits a constructor from Middleman::Templates::Base
Class Method Details
.source_root ⇒ String
Template files are relative to this file
15 16 17 |
# File 'lib/middleman-more/templates/smacss.rb', line 15 def self.source_root File.dirname(__FILE__) end |
Instance Method Details
#build_scaffold!
This method returns an undefined value.
Output the files
21 22 23 24 25 |
# File 'lib/middleman-more/templates/smacss.rb', line 21 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 |