Skip to content

Require hook (server side node). #15

Description

@DylanPiercey

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions