Ben Daley
Ben Daley
it provides a `require` filter that hooks into webpack. Provided you have the loader configured, it will return whatever webpack resolves from the require statement. eg. ``` # tpl.njk {{...
@vacchi I presume src/templates/includes/images/image.png does exist? If the path is correct (eg. you still have this issue) can you please share a reproduction and I'll look into it.
Unfortunately this is difficult (possibly won't fix) due to how nunjucks 2.x loads dependencies (and a lack of UMD support). If you want to take a crack at it, a...
> What is the exact problem, though? Nunjucks uses it's own mechanism for loading dependencies and that mechanism depends on the template object (and not just the `render` method). In...
@stephanedemotte that's a no for now
Have a look at #60
@chrisfarms Thanks for your input. A custom Loader that leverages `require` sounds like a better approach than rewriting the runtime... so yes, I think this could be a good direction...
@chrisfarms - sorry about the delay... there is a lot going on with life at the moment. I'll try for tests this week. Failing that, I agree with not creating...
I'm not sure how that would/could look with child/parent dependencies (particularly resolving the parents from the children). Can you give me some more info on what you're wanting to achieve?...