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 (18 sloc) 0.403 kb
# server.rb
require 'sinatra'
require 'haml'
require 'sass'
require 'yaml'
# Load up the config file
Settings = YAML.load_file("config.yml") unless defined? CONFIG
# SASS it up.
get '/styles.css' do
content_type 'text/css', :charset => 'utf-8'
scss :styles
end
get '/?:channel?' do
@channel = params[:channel]
@publish = Settings['publish']
@subscribe = Settings['subscribe']
haml :index
end
Jump to Line
Something went wrong with that request. Please try again.