Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/epoch/sinatra_generator

A simple sinatra generator
https://github.com/epoch/sinatra_generator

generator sinatra

Last synced: 12 days ago
JSON representation

A simple sinatra generator

Awesome Lists containing this project

README

        

# SinatraGenerator

generate a simple hello world sinatra app

## Installation

Install it yourself as:

$ gem install sinatra_generator

## Usage:

sinatra new [APP_NAME]

## Options:

-m, [--modular=MODULAR] # modular style. Inherits from Sinatra::Base
-v, [--views=VIEWS] # include views folder, index.erb and layout.erb
-a, [--assets=ASSETS] # include public, javascripts and stylesheets folder
-p, [--procfile=PROCFILE] # include Procfile

## example

sinatra new blog -mvpa

.
├── config.ru
├── Gemfile
├── main.rb
├── Procfile
├── public
│   ├── javascripts
│   │   └── application.js
│   └── stylesheets
│   └── main.css
└── views
├── index.erb
└── layout.erb