From 09364850ee15028073810cc4c1fbf403ea9f3cff Mon Sep 17 00:00:00 2001 From: Andrew Arrow Date: Fri, 27 Mar 2015 15:13:55 -0700 Subject: [PATCH] adding template dir logic to app.rb vs. just the bin --- lib/gollum/app.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/gollum/app.rb b/lib/gollum/app.rb index 05057df6..be3e19c6 100644 --- a/lib/gollum/app.rb +++ b/lib/gollum/app.rb @@ -96,6 +96,7 @@ module Precious end before do + Precious::App.set(:mustache, {:templates => settings.wiki_options[:template_dir]}) if settings.wiki_options[:template_dir] @base_url = url('/', false).chomp('/') # above will detect base_path when it's used with map in a config.ru settings.wiki_options.merge!({ :base_path => @base_url })