Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

21 lines (15 sloc) 0.409 kb
require "rubygems"
require "bundler"
require 'sinatra/base'
Bundler.setup
require 'redcarpet'
class DevCenterArticleApp < Sinatra::Base
markdown = Redcarpet::Markdown.new(Redcarpet::Render::HTML,
:autolink => true, :space_after_headers => true)
get "/" do
source = File.open('README', 'r:UTF-8').read
@markdown = markdown.render(source)
erb :article
end
end
run DevCenterArticleApp
Jump to Line
Something went wrong with that request. Please try again.