lib/templates/lib/app.rb.eruby in skellington-0.3.5 vs lib/templates/lib/app.rb.eruby in skellington-0.3.6
- old
+ new
@@ -1,9 +1,11 @@
require 'sinatra/base'
class <%= @gen.camelname %> < Sinatra::Base
get '/' do
- 'Hello from <%= @gen.camelname %>'
+ @content = '<h1>Hello from <%= @gen.camelname %></h1>'
+ @title = '<%= @gen.camelname %>'
+ erb :index, layout: :default
end
# start the server if ruby file executed directly
run! if app_file == $0
end