2011-04-12 23:32:13 -04:00
|
|
|
class Middleman::Templates::Default < Middleman::Templates::Base
|
|
|
|
def self.source_root
|
2011-07-25 23:48:49 -04:00
|
|
|
File.dirname(__FILE__)
|
2011-04-12 23:32:13 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
def build_scaffold
|
2011-07-25 23:48:49 -04:00
|
|
|
template "shared/config.tt", File.join(location, "config.rb")
|
|
|
|
copy_file "default/source/index.html.erb", File.join(location, "source/index.html.erb")
|
|
|
|
copy_file "default/source/layout.erb", File.join(location, "source/layout.erb")
|
2011-05-31 01:33:11 -04:00
|
|
|
empty_directory File.join(location, "source", options[:css_dir])
|
2011-07-25 23:48:49 -04:00
|
|
|
copy_file "default/source/stylesheets/site.css.scss", File.join(location, "source", options[:css_dir], "site.css.scss")
|
2011-05-31 01:33:11 -04:00
|
|
|
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)
|