Docunext


Ruby 1.9.1 and Sinatra 1.0a

February 20th, 2010

Working with Ruby 1.9.1 and Sinatra 1.0a has been an awesome experience. I've learned a lot, and was ultimately successful in getting the Regdel demo to run.

I even got to use the new tilt interface to get basic markdown support (with rdiscount even), simply by adding this basic helper:

  def markdown(template, options={})
    output = render :md, template, options
    '<div>'+output+'</div>'
  end

I'm wrapping the output in div tags so that the output is a valid xml document and can be transformed via xsl.

This is getting to be a really awesome platform. Seriously.

Yearly Indexes: 2003 2004 2006 2007 2008 2009 2010 2011 2012 2013 2015 2019 2020 2022