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

Sending Locals with Docpad API #5

Open
Rolilink opened this issue Jan 24, 2013 · 0 comments
Open

Sending Locals with Docpad API #5

Rolilink opened this issue Jan 24, 2013 · 0 comments

Comments

@Rolilink
Copy link

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
     }
});
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