Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 21 lines (16 sloc) 0.43 kB
9e8de57 @kschiess + a better design
authored
1 require 'tilt'
2 require 'RedCloth'
31e6292 @kschiess + A minimal middleman setup
authored
3
9e8de57 @kschiess + a better design
authored
4 class NBRedClothTemplate < Tilt::RedClothTemplate
5 include Middleman::CoreExtensions::FrontMatter::YamlAware
6
7 def prepare
8 super
9 @engine.hard_breaks = false
10 end
11 end
12 Tilt.register NBRedClothTemplate, 'textile'
13 Tilt.prefer NBRedClothTemplate
31e6292 @kschiess + A minimal middleman setup
authored
14
9e8de57 @kschiess + a better design
authored
15 Slim::Engine.set_default_options :pretty => true
31e6292 @kschiess + A minimal middleman setup
authored
16
9e8de57 @kschiess + a better design
authored
17 set :textile, :layout_engine => :slim
31e6292 @kschiess + A minimal middleman setup
authored
18
19 configure :build do
5ee902e @kschiess + Should look for files under the correct asset path
authored
20 set :http_prefix, "/cod/"
31e6292 @kschiess + A minimal middleman setup
authored
21 end
Something went wrong with that request. Please try again.