Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/epoch/sinatra_generator
- Owner: epoch
- License: mit
- Created: 2014-07-07T06:19:02.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2021-09-07T13:06:08.000Z (about 3 years ago)
- Last Synced: 2024-10-25T01:38:33.701Z (20 days ago)
- Topics: generator, sinatra
- Language: Ruby
- Homepage:
- Size: 13.7 KB
- Stars: 33
- Watchers: 3
- Forks: 9
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
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