Sha256: 675abcf31894f1b64348092726bc5fd5cfd14b7f4ce4024e52037bfdbb4791c1
Contents?: true
Size: 285 Bytes
Versions: 2
Compression:
Stored size: 285 Bytes
Contents
<%- options[:views] ? @view = 'erb :index' : @view = "'hello world'" -%> <%- if options[:modular] -%> require 'sinatra/base' class HelloWorld < Sinatra::Base get '/' do <%= @view %> end end <%- else -%> require 'sinatra' get '/' do <%= @view %> end <%- end -%>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sinatra_generator-0.1.4 | lib/sinatra_generator/templates/main.rb |
sinatra_generator-0.1.3 | lib/sinatra_generator/templates/main.rb |