Sha256: a386a39ee98692d336947ea86feead39a353355f35e24da0186e800d12914322
Contents?: true
Size: 283 Bytes
Versions: 1
Compression:
Stored size: 283 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sinatra_generator-0.1.1 | lib/sinatra_generator/templates/main.rb |