Hello,
I've put together a quick starter template for Sinatra [1] web apps
using the quik machinery. Try:
$ quik new sinatra # or
$ qk n sinatra
This will download and run the sinatra.rb [2] quik starter wizard
script. Resulting in:
>> Hello from the sinatra quick starter wizard script
>>
>> Q: Name of the sinatra app? [hola]: hola
>>
>> Thanks! Ready-to-go. Stand back.
>>
>> Downloading Sinatra Starter Template...
>> Setting up Sinatra Starter Template...
>> ...
>> Merging templates...
>> name: "hola"
>> klass: "HolaApp"
>> ...
>> Done.
Resulting in:
hola
├── config
> ├── boot.rb
> └── database.yml
├── app.rb
├── config.ru
├── Gemfile
└── README.md
That's it. Not your Sinatra template style? Add your own wizard script.
Cheers.
PS: The qk/quik command line tool now includes a new list wizards
(list, ls, l) command. Try:
$ quik ls
Resulting in:
1..gem .:. Gem Quick Starter Template
2..gem-hoe .:. Gem Quick Starter Template (Hoe Classic Edition)
3..sinatra .:. Sinatra Quick Starter Template
...
[1] https://github.com/rubyref/sinatra-starter-template
[2] https://github.com/rubyref/scripts/blob/master/sinatra.rb