You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to doc...@googlegroups.com
Hi,
I'm wondering how I can register routes that are not handled by docpad in docpad.coffee?
I'm playing around with node.js and want to integrate some login/logout functionality, but can't figure it out. Any idea how to get started?
Thanks,
David
Benjamin Lupton
unread,
Sep 13, 2012, 2:11:41 AM9/13/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to doc...@googlegroups.com
Hey David,
You can use the `serverExtend` event inside your `docpad.coffee` configuration file to get access to the Express.js server instance that DocPad uses. From there you can extend it to do your bidding. Most of the skeletons already include this by default, however personally I prefer to outsource such routing into it's own file - example here: https://gist.github.com/3695936
Let me know how you go, and feel free to jump onto IRC if you need any quick help. #docpad on freenode.