Filter _Template content. Resolves #1603 and #1640. (#1612)

* Filter _Template content. Resolves #1603 and #1640.

* Introduces a Gollum::TemplateFilter class with methods to easily add _Template Filters.

* Adds support for relative _Template pages with fallback to _Template in root.
This commit is contained in:
Bart Kamphorst
2020-12-26 14:10:02 +01:00
committed by GitHub
parent 97ed5a7c57
commit 6c0796733d
3 changed files with 23 additions and 5 deletions
+1 -1
View File
@@ -152,7 +152,7 @@ MSG
opts.on('--template-dir [PATH]', 'Specify custom mustache template directory.') do |path|
wiki_options[:template_dir] = path
end
opts.on('--template-page', 'Use _Template in root as a template for new pages.') do
opts.on('--template-page', 'Use _Template.{ext} as a template for new pages.') do
wiki_options[:template_page] = true
end
opts.on('--lenient-tag-lookup', 'Internal links resolve case-insensitively, will treat spaces as hyphens, and will match the first page found with a certain filename, anywhere in the repository. Provides compatibility with Gollum 4.x.') do