Version: v0.5.1 - Beta.  We welcome contributors & feedback.  THanks!

Input.route

Input.route()

Description

Get a param in the current route as a string.

Only these characters are allowed as a param value: a-z 0-9 . -

Invalid characters in a route will automatically return a 404 error.

// URL:
//  http://mysite.com/post/book-review

// Route in settings/app.jcon:
//  /post/{postTitle}

Input.route('postTitle');
//= 'book-review'

See Also