Sha256: 2d46f2d115021b95ce1d49077cb653961db041a44ea1896c9cba6b11fc1d3a9c
Contents?: true
Size: 619 Bytes
Versions: 2
Compression:
Stored size: 619 Bytes
Contents
require 'rblosxom/base' module Rblosxom class Main < Base get '/?' do set_common_variables @log.info "Main start" @log.debug "Main debug" index_file = File.expand_path("#{@root}/#{@config["datadir"]}/main.textile") unless File.exist?(index_file) index_file = File.expand_path("#{@root}/README.textile") end content = File.read(index_file) haml :index, :layout => true, :locals => { :content => content } end end end # vim: ft=ruby:fenc=utf-8:sw=4:ts=4:sts=4:et: # main.rb end here
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rblosxom-0.1.6 | demo/main.rb |
rblosxom-0.1.5 | demo/main.rb |