2011-04-12 23:32:13 -04:00
|
|
|
class Middleman::Templates::Default < Middleman::Templates::Base
|
|
|
|
def self.source_root
|
|
|
|
File.join(File.dirname(__FILE__), 'default')
|
|
|
|
end
|
|
|
|
|
|
|
|
def build_scaffold
|
|
|
|
template "config.tt", File.join(location, "config.rb")
|
|
|
|
template "config.ru", File.join(location, "config.ru")
|
2011-05-31 01:33:11 -04:00
|
|
|
directory "source", File.join(location, "source")
|
|
|
|
empty_directory File.join(location, "source", options[:css_dir])
|
|
|
|
empty_directory File.join(location, "source", options[:js_dir])
|
|
|
|
empty_directory File.join(location, "source", options[:images_dir])
|
2011-04-12 23:32:13 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
Middleman::Templates.register(:default, Middleman::Templates::Default)
|