Skip to content

Sending Locals with Docpad API #5

@Rolilink

Description

@Rolilink

Is a good idea to send some locals to the plugin Via the Docpad API, something i need to do requires the use of some javascript mixins and i cant send it when serving the document on express.

tried this:

docpadInstance.serveDocument({
    document: document,
    req: req,
    res: res,
    next: next,
    locals:{
       val:rval
     }
});

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