Sinatra
From Docunext Technology Wiki
Contents |
Summary
Another Ruby framework. In my investigations, I've only managed to fork the codebase:
http://www.mirrors.docunext.com/cgit.cgi/sinatra/
I've tried it out and I love it. Its actually very similar to Nexista in that the sitemap is the application. You start out with something like this:
require 'rubygems'
require 'xslt'
require 'sinatra'
sdoc = XML::Document.file('index.xsl')
stylesheet = XSLT::Stylesheet.new(sdoc)
get '/' do
xml_doc = XML::Document.file('index.xml')
blah = stylesheet.apply(xml_doc)
"#{blah}"
end
I can imagine transforming an existing Nexista application sitemap into a Sinatra application with ease!
Learning How to Use Sinatra
I just found a blog post that suggested reading the Sinatra code. I've looked through it a bunch before, and its a good idea so I'm definitely going to do it again. I've also reviewed a bunch of other sinatra apps, like Git-wiki. That was very helpful.
Helpers
I'm writing some helpers for Sinatra:
- Sinatra-XSLView
- Sinatra-Cache
- I wish there was a more sophisticated configuration helper for Sinatra - there are, thanks to the Ruby Proc!
Sinatra Apps
See Also
Links
General
- http://rubylearning.com/blog/2009/07/19/what-are-the-twelve-rules-of-sinatra/
- http://www.ruby.code-experiments.com/blog/2010/03/my-complaints-about-sinatra-are-interesting-indeed.html