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

How to customize custom template path ? #1

Open
rbecheras opened this issue Jan 29, 2018 · 2 comments
Open

How to customize custom template path ? #1

rbecheras opened this issue Jan 29, 2018 · 2 comments

Comments

@rbecheras
Copy link
Member

How to use custom templates directory instead of the templates dir from the user home when using it as a CLI ?

And if I use updater-gitignore as a plugin, how to do the same thing ? Typically using the templates directory of the current updater source directory.

@jonschlinkert
Copy link
Member

You should be able to use the ~/templates directory. Templates for dotfiles always start with _, so the .gitignore template would be saved at ~/templates/_gitignore.

I think there is another issue somewhere where we discussed changing that directory to ~/{app}/templates/, where app is assemble, verb, update, generate etc. We also discussed supporting ~/toolkit/templates as well, where each app would look in the app templates directory first, then fallback to the toolkit one.

thoughts?

@rbecheras
Copy link
Member Author

Yes, using conventions could be interesting but allowing to use a fully customized path should be even more.

I search to create updaters that use other updaters as plugins for the imperative work, but using their own templates (from the parent updater's ./templates directory).

It is already possible out of the field of this issue ?

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

No branches or pull requests

2 participants