21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# File 'lib/middleman-tansu/template.rb', line 21
def build_scaffold!
template 'shared/Gemfile.tt', File.join(location, 'Gemfile')
template 'shared/config.tt', File.join(location, 'config.rb')
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])
empty_directory File.join(location, 'source', 'templates')
empty_directory File.join(location, 'source', 'layouts')
copy_file 'source/sample.html.md', File.join(location, 'source/sample.html.md')
copy_file 'source/sitemap.xml.builder', File.join(location, 'source/sitemap.xml.builder')
copy_file 'source/layouts/layout.slim', File.join(location, 'source/layouts/layout.slim')
copy_file 'source/templates/index.html.slim', File.join(location, 'source/templates/index.html.slim')
copy_file 'source/stylesheets/all.css.sass', File.join(location, 'source', options[:css_dir], 'all.css.sass')
copy_file 'source/stylesheets/_gemoji.sass', File.join(location, 'source', options[:css_dir], '_gemoji.sass')
copy_file 'source/stylesheets/pure-min.css', File.join(location, 'source', options[:css_dir], 'pure-min.css')
copy_file 'source/stylesheets/github-markdown.css', File.join(location, 'source', options[:css_dir], 'github-markdown.css')
end
|