Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Colon-delimited search path for templates #238

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Colon-delimited search path for templates #238

wants to merge 3 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Jan 6, 2018

I wanted to customize just the layout template in Gollum, but since the template directory you can pass in must contain all templates, I wound up having to copy all the templates from the Gollum gem into my own template directory. In order to make this DRYer I changed Gollum to prepend the custom directory to the gem directory with a colon delimiter, then updated Mustache to accept a template_path containing colons and do a search for templates. This fixes issue #154

Note that I bumped the version to 1.0.6 to ease in testing my Gollum setup.

* template_path can be a colon-delimited list
* To facilitate testing with Gollum
@ghost ghost mentioned this pull request Jan 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant