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! ⇒ void
Just copy from the template path.
Methods inherited from Base
#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
6 7 8 |
# File 'lib/middleman-core/templates/local.rb', line 6 def self.source_root File.join(File.("~/"), ".middleman") end |
Instance Method Details
#build_scaffold! ⇒ void
This method returns an undefined value.
Just copy from the template path
12 13 14 |
# File 'lib/middleman-core/templates/local.rb', line 12 def build_scaffold! directory [:template].to_s, location end |