Permalink
Browse files

Merge pull request #762 from pdenes/add_template_dir_option

add option to specify custom template directory
  • Loading branch information...
2 parents 9b39a51 + bec7eab commit d5e9183877951b576f0b8612952238f82049c00c @bootstraponline bootstraponline committed Nov 11, 2013
Showing with 5 additions and 0 deletions.
  1. +5 −0 bin/gollum
View
@@ -56,6 +56,10 @@ opts = OptionParser.new do |opts|
wiki_options[:js] = true
end
+ opts.on("--template-dir [PATH]", "Specify custom template directory") do |path|
+ wiki_options[:template_dir] = path
+ end
+
opts.on("--page-file-dir [PATH]", "Specify the sub directory for all page files (default: repository root).") do |path|
wiki_options[:page_file_dir] = path
end
@@ -168,6 +172,7 @@ else
require 'gollum/app'
Precious::App.set(:gollum_path, gollum_path)
Precious::App.set(:wiki_options, wiki_options)
+ Precious::App.settings.mustache[:templates] = wiki_options[:template_dir] if wiki_options[:template_dir]
if cfg = options['config']
# If the path begins with a '/' it will be considered an absolute path,

0 comments on commit d5e9183

Please sign in to comment.