Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

48 lines (39 sloc) 1.268 kb
$:.unshift File.join(File.dirname(__FILE__), *%w[lib])
require 'rubygems'
require 'bundler/setup'
require 'vanilla'
require 'blog'
require 'kramdown_renderer'
class Application < Vanilla::App
Application.configure do |config|
# The root directory of the application; normally the directory this
# file is in.
config.root = File.dirname(__FILE__)
# The snip to render on requests to "/". This defaults to "start"
config.root_snip = "start"
# You can register additional renderer classes, to be used with snips
# with the given extensions or 'render_as' attributes
:blog => Vanilla::Renderers::Blog,
:kramdown => KramdownRenderer
# You can partition your snips into subdirectories to keep things tidy.
# This doesn't affect their URL structure on the site (everything is
# flat).
# You should ensure that the system soup is at the bottom of this list
# unless you really know what you are doing.
config.soups = [
config.raise_errors = true
$LOAD_PATH.unshift File.expand_path(File.join(config.root, "soups/dynasnips"))
Jump to Line
Something went wrong with that request. Please try again.