class Middleman::Templates::Local

Local templates

Public Class Methods

source_root() click to toggle source

Look for templates in ~/.middleman @return [String]

# File lib/middleman-core/templates/local.rb, line 5
def self.source_root
  File.join(File.expand_path('~/'), '.middleman')
end

Public Instance Methods

build_scaffold!() click to toggle source

Just copy from the template path @return [void]

# File lib/middleman-core/templates/local.rb, line 11
def build_scaffold!
  directory options[:template].to_s, location
end