3 ms·
You do realize, of course, that you can do it in one line right? require 'sinatra' Just put everything else in the public subfolder of the script, and run
by DanielRibeiro 15y ago
You do realize, of course, that you can do it in one line right?
require 'sinatra'
Just put everything else in the public subfolder of the script, and run it.
If you want the public folder to be the root, you can make it in two lines:
require 'sinatra'
set :public_folder, '.'
- paulasmuth 15y agothe point is, that the pages are pre-rendered to static *.html files and can be served by a lighttpd or apache much faster and without any dependencies (ruby for example)
- DanielRibeiro 15y agoOh! Thanks for making it clear!