Skip to content
This repository has been archived by the owner on Apr 19, 2019. It is now read-only.

Commit

Permalink
Merge pull request gollum#762 from pdenes/add_template_dir_option
Browse files Browse the repository at this point in the history
add option to specify custom template directory
  • Loading branch information
bootstraponline committed Nov 11, 2013
2 parents 9b39a51 + bec7eab commit d5e9183
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/gollum
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit d5e9183

Please sign in to comment.