Router now casts numeric URL params as numbers instead of strings
Router fixes, server tweaks, addition of include hbs helper, still need Jade mixin equivalent
Added automatic session timeout and deletion.
Router and server tweaks
- Freed up route.action for dev use. Recommended form handling logic is now based on request.method.
- Renamed route.name to route.controller
Fixed a bug that caused redirects to fail. Also avoids lots of unnecessary processing and makes redirects take priority over handoffs.
Fixed bugs in CORS implementation. Also, by default, all controllers are locked down to foreign hosts, even for POST operations. A controller must export an access object to make itself available to foreign hosts.
Improved error handling and fixed a view rendering issue
Fixed a bug in the debugger. Oh, the irony.
Changes to the router
- What was previously assigned to url.descriptor is now assigned to the controller name instead (/article/My-Article-Title now results in url.article === 'My-Article-Title') since it's likely this string will be used as a unique identifier
- The descriptor has been moved to the route scope (route.descriptor === 'My-Article-Title')
Improvements to handoff and includes, added chain to router, other tweaks
Testing the removal of potentially unnecessary copy operations, changes to extend helper
Cleanup
- Changed router variable name to better reflect purpose of regex
- Removed some unused vars
Added .jshintrc, changed public directory to web
Edits in progress
Enhanced includes with directives, put helpers at top level, readme updates