start with ruby code

added rackup support, good. Also now use sinatra and all to get started.
This commit is contained in:
Pranshu Sharma 2025-05-31 11:49:29 +10:00
parent 40d8754378
commit deec2b8707
3 changed files with 22 additions and 0 deletions

14
app.rb Normal file
View file

@ -0,0 +1,14 @@
require 'sinatra'
require 'erb'
$root = "/home/pranshu/Documents/proj/perc/test"
class Perc < Sinatra::Application
set :views, $root
get "/" do
erb :main
end
end