Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
source
templates
.gitignore
README.md
generate.rb
model.json

README.md

Generating a Sinatra site from a model

Sample that generates a Sinatra site, from a model.

Generate the code

Execute

ruby generate.rb

This command creates a directory build where the generated site resides

Run the application

From this document directory, run

ruby -I./build build/app.rb

You need to install Sinatra. Usually, run

gem install sinatra

to have a global installation