Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Require hook (server side node). #15

Open
DylanPiercey opened this issue Feb 22, 2016 · 0 comments
Open

Require hook (server side node). #15

DylanPiercey opened this issue Feb 22, 2016 · 0 comments

Comments

@DylanPiercey
Copy link

It would be cool to have a require hook built into this (similar to babel, coffee-script, etc).
So that we could do:

require("nunjucksify/register");
var myTemplate = require("./index.nunjucks");

Which would return a server side, ready to render, nunjucks function when required.
This is useful for apps that use nunjucks isomorphically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant