Open andreasheim opened 9 years ago
@andreasheim you could do this in your own personal javascript; I am now wondering what I could support for this case though as well...
Getting proper name stripping is actually a pretty hard thing to do, might need to add another configuration option for something like this.
I don't know how other tools implement it. I think they may rather just have you specify different folders for normal templates and partials. Not sure how that would integrate with the sprockets asset pipeline though.
Is there a way to provide a common prefix for partials so that they can be used without a folder name?
E.g.
partialsPath = 'templates/partials'
orpartialsDefaultPath
And then the partials can be used like
instead of
Obviously I could just put global partials in the templates folder, but that feels dirty.
(strip the underscore as well, but I could live with still needing it).
Apologies if I missed something obvious.