Sha256: ac268dfb959e0ae8302c57b9063f2f2c6efa9b09b9cf189e4a44a5deebe40afb

Contents?: true

Size: 298 Bytes

Versions: 2

Compression:

Stored size: 298 Bytes

Contents

require 'sinatra/base'

class <%= @gen.camelname %> < Sinatra::Base
  get '/' do
    @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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
skellington-0.4.0 lib/templates/lib/app.rb.eruby
skellington-0.3.6 lib/templates/lib/app.rb.eruby