Add the ability to load user defined templates. #192

Merged
merged 6 commits into from Dec 25, 2011

Conversation

Projects
None yet
3 participants
Member

hawx commented Dec 15, 2011

I just wanted an opinion on this because I've been wanting something like this lately. It allows you to define templates, like you would for a guard plugin, but in ~/.guard/templates. You can then add these to your Guardfile using guard init [name] which loads ~/.guard/templates/[name] if a guard of the same name does not exist.

hawx added some commits Dec 15, 2011

@hawx hawx Add the ability to load user defined templates.
The templates are loaded from ~/.guard/templates/[name] by
calling 'guard init [name]' as you would to load a guard's
template file.
5e42001
@hawx hawx Errors are printed if guard template can't be found 6001b19
Owner

thibaudgg commented Dec 23, 2011

Could be useful, can you please add specs and documentations before we merged it. Thanks

Member

hawx commented Dec 23, 2011

Is this OK?

Owner

thibaudgg commented Dec 23, 2011

Seems good to me, @netzpirat, @rymai is this ok for you?

Owner

rymai commented Dec 23, 2011

Yeah, looks good to me too. Thanks!

thibaudgg merged commit cc4c972 into guard:master Dec 25, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment