gulp-template-compile
gulp-template-compile copied to clipboard
nameing using namespace for JST
hi great work here. have been using it for a while now.
I had come to a point where I need to check in my code if a certain template exists within a folder of templates. for example I have files in folder foo
, so I would really like them to be added like so JST['foo']['filename']
and so on, so the folder is actually an object and not a part of the name itself. Is there a way of doing so? thanks!
That could be a good idea, I've not much spare time lately but I'll look at it as soon I have some. Thanks for the suggestion!
that would really make it rock. an example would be a code which triggers a certain template, and I do not know if the thing the code wants to run even exists in the templates a specific folder, so I need to check if the key
of the given name of the template exist in that scope. I cannot do this with the current implementation.