Sha256: 95548ef162333877e27537c1d62b828dcdb4e39e14ac6b7c1f19c001ba3f7921

Contents?: true

Size: 490 Bytes

Versions: 1

Compression:

Stored size: 490 Bytes

Contents

require 'rblosxom/base'
require 'rdiscount'

module Rblosxom
    class Rblosxom < App
        set :public, File.join(root, "public")
        set :views, File.join(root, "views")

        get '/?' do
            set_common_variables
            content = File.read(File.expand_path("../README.rdoc", File.dirname(__FILE__)))
            haml :index, :layout => true, :locals => { :readme => content }
        end
    end
end

# vim: ft=ruby:fenc=utf-8:sw=4:ts=4:sts=4:et:
# rapp.rb end here

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rblosxom-0.1.0 demo/rapp.rb