lib/author/commands/generator.rb in author-1.0.1.alpha vs lib/author/commands/generator.rb in author-1.1.0.alpha
- old
+ new
@@ -22,9 +22,12 @@
say "Copying files"
template 'config.yml', 'config.yml'
copy_file 'Gemfile', 'Gemfile'
create_file 'outline.txt'
template 'sample.md', 'chapters/sample.md'
+ template 'layout.xhtml', 'templates/layout.xhtml'
+
+ gsub_file 'templates/layout.xhtml', '<!-- insert @body -->', '<%= @body %>'
end
def bundle_gems
inside destination_root do
say "Bundling gems"
\ No newline at end of file