Class: Middleman::Templates::Local

Inherits:
Base
  • Object
show all
Defined in:
lib/middleman-core/templates/local.rb

Overview

Local templates

Class Method Summary collapse

Instance Method Summary collapse

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_rootString

Look for templates in ~/.middleman

Returns:

  • (String)


6
7
8
# File 'lib/middleman-core/templates/local.rb', line 6

def self.source_root
  File.join(File.expand_path("~/"), ".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 options[:template].to_s, location
end