Class: Middleman::Templates::Local
- Defined in:
- lib/middleman-core/templates/local.rb
Overview
Local templates
Class Method Summary collapse
-
.source_root ⇒ String
Look for templates in ~/.middleman.
Instance Method Summary collapse
-
#build_scaffold!
Just copy from the template path.
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
Look for templates in ~/.middleman
5 6 7 |
# File 'lib/middleman-core/templates/local.rb', line 5 def self.source_root File.join(File.('~/'), '.middleman') end |
Instance Method Details
#build_scaffold!
This method returns an undefined value.
Just copy from the template path
11 12 13 |
# File 'lib/middleman-core/templates/local.rb', line 11 def build_scaffold! directory [:template].to_s, location end |