lib/ruby_slippers/config.rb in ruby-slippers-0.1.2 vs lib/ruby_slippers/config.rb in ruby-slippers-0.1.7
- old
+ new
@@ -12,10 +12,10 @@
:ext => 'txt', # extension for articles
:cache => 28800, # cache duration (seconds)
:tag_separator => ', ', # tag separator for articles
:github => {:user => "dreamr", :repos => [], :ext => 'md'}, # Github username and list of repos
:to_html => lambda {|path, page, ctx| # returns an html, from a path & context
- ERB.new(File.read("#{path}/#{page}.rhtml")).result(ctx)
+ ERB.new(File.read("#{path}/#{page}.html.erb")).result(ctx)
},
:error => lambda {|code| # The HTML for your error page
"<font style='font-size:300%'>A large house has landed on you. You cannot continue because you are dead. <a href='/'>try again</a> (#{code})</font>"
}
}