sinatra

sinatra — Ruby gem

Sinatra – Ruby Gem:


1.gem install sinatra

2. Write code:

jazzez.rb:

require ‘rubygems’
require ‘sinatra’
get ‘/jazzez’ do
home=”https://raveendran.wordpress.com”
link=”<a href=#{home}>#{home}</a>”
“If you want to know about jazzez then go to #{link}”
end

3. Run the program —  cmd> ruby jazzez.rb

4. Open this link in browser –> http://localhost:4567/jazzez

Output looks like:

sinatra

For more details about sinatra,

1. http://www.sinatrarb.com/

Advertisements