Please sign in to comment.
Fix Issue 592 - template() crashes outside request.
Check whether there's a request being processed before trying to add request-specific tokens, so that if `template()` is used outside of a request (in a script for instance as per Nick Knutov's example), it doesn't crash. Thanks to Nick Knutov for reporting this on the mailing list: http://www.backup-manager.org/pipermail/dancer-users/2011-July/001604.html
- Loading branch information...