class Middleman::Templates::Default
Default Middleman template
def self.source_root
-
(String)
-
def self.source_root File.dirname(__FILE__) end
def build_scaffold!
-
(void)
-
def build_scaffold! template 'shared/config.tt', File.join(location, 'config.rb'), force: options[:force] copy_file 'default/source/index.html.erb', File.join(location, 'source/index.html.erb'), force: options[:force] copy_file 'default/source/layouts/layout.erb', File.join(location, 'source/layouts/layout.erb'), force: options[:force] empty_directory File.join(location, 'source', options[:css_dir]), force: options[:force] copy_file 'default/source/stylesheets/all.css', File.join(location, 'source', options[:css_dir], 'all.css'), force: options[:force] copy_file 'default/source/stylesheets/normalize.css', File.join(location, 'source', options[:css_dir], 'normalize.css'), force: options[:force] empty_directory File.join(location, 'source', options[:js_dir]), force: options[:force] copy_file 'default/source/javascripts/all.js', File.join(location, 'source', options[:js_dir], 'all.js'), force: options[:force] empty_directory File.join(location, 'source', options[:images_dir]), force: options[:force] copy_file 'default/source/images/background.png', File.join(location, 'source', options[:images_dir], 'background.png'), force: options[:force] copy_file 'default/source/images/middleman.png', File.join(location, 'source', options[:images_dir], 'middleman.png'), force: options[:force] end