start with ruby code
added rackup support, good. Also now use sinatra and all to get started.
This commit is contained in:
parent
40d8754378
commit
deec2b8707
3 changed files with 22 additions and 0 deletions
14
app.rb
Normal file
14
app.rb
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue