node-swig / swig-templates

Take a swig of the best template engine for JavaScript.
http://node-swig.github.io/swig-templates/
MIT License
209 stars 29 forks source link

Add "includeDirs" option to Swig Options object #45

Open steevhise opened 7 years ago

steevhise commented 7 years ago

the Include tag should be able to find files in multiple places. The solution would seem to be a SwigOpts option that can accept a string or an array of strings for paths in which include would look for a file.

cdaringe commented 7 years ago

hi @steevhise! we might be open to that. however, my gut impression is that file collection/aggregation is something of a pre-processing step.

@paulcpederson @Lochlan thoughts?