Merge branch 'feature/fix-view-path' into devel
Add t/15_plugins/07_ajax_plack_builder.t to MANIFEST

Thanks to @racke for spotting this omission
Merge branch 'devel' of github.com:sukria/Dancer into devel
Add exception type ::Core::Request.

Fixes GH-738.

(Arguably, though, the code that showed up this missing exception type ought to
use Core::Route, I think, as the issue is that `params` was called wrongly from
within a route handler - the problem isn't with the request.  I guess it comes
down to, should the exception type indicate the point the exception was raised,
or the original source of the problem, if known?)
Update CHANGES
Another silly POD typo, thanks to @bor for reporting
Same typo as fixed in previous commit

Thanks again @bor :)
JSON: Decode from UTF8 on the way in only.
Merge pull request #740 from skington/d4eb3dac44015815352ec5bd61bc4d14be2b6d76

Handle UTF8 more robustly
Doc tweak - mention del, but not before/after in EXPORTS.

In the example for exporting only the "route controllers", remove before & after
(as they're deprecated, and it's arguable whether they ever really belonged
there), and add del.

Prompted by @skington - cheers Sam.
Clarify skipping export of certain keywords.

Prompted by @DrHyde.

It was already documented, but not in big flashing red capitals, so was somewhat
obscured by the awesomeness of his beard, I believe.
Updated before, after, before_template to use hooks since the
previous functions have been deprecated since version 1.3080.
'before_template' is just being translated to 'before_template_render'
on line 30 of Hook.pm. Why not just have all the examples refer to
before_template_render instead.
Missed a before_template reference.
Changed all instances of before_template to before_template_render.
This provides a consistant example throughout the documentation.
Merge pull request #743 from kimmel/devel

Things I found as a first time dancer user
Bugfix: only match files as views.

Dancer::Template::Abstract::view() used `-e` to test for existence of a view to
render; this means it would return directory names, which is obviously not good
- a directory can't be rendered as a view :)
Remove auto_page setting code which adds /:page route.

There's a far better way coming in the next few commits.
Re-implementing auto-page feature in D::Renderer.

Instead of adding a route to the app to catch requests for /:page and see if we
can handle that, and pass if not, add a new `render_autopage()` to
`Dancer::Renderer` which is called by `Dancer::Handler` if no route / static
file matched.

This immediately makes the auto_page feature more usable, as it can handle
sub-directories properly now (e.g. given a request for `/foo/bar`, a view named
`foo/bar.tt` will be rendered, as you'd expect).

(Heh, look at that - the commit message explaining is almost as long as the code
needed to just fucking do it :) )
Refactor to handle index.$tmpl_ext for "dir index".

If we don't find a direct match for `views/$path`, try appending `/index` to the
path and looking again.

This means that, if the request was for `/foo` and we didn't have
`views/foo`, we'll then look for `views/foo/index.tt`, and use that if found.

This is something I've missed for a long time, and makes the auto_page feature a
lot more useful, I think.