Skip to content

Instantly share code, notes, and snippets.

@rkh
Created July 28, 2011 10:44
Show Gist options
  • Save rkh/1111360 to your computer and use it in GitHub Desktop.
Save rkh/1111360 to your computer and use it in GitHub Desktop.
require 'sinatra/base'
require 'ostruct'
dummy = OpenStruct.new :template_cache => Tilt::Cache.new, :settings => Sinatra::Base
dummy.extend Sinatra::Templates
puts dummy.markdown('# hi')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment