html - How do I access request parameters in kademi templates? -


i've been developing website kademi , i'm trying implement date range search, i've got date range adding parameters url

?startdate=02/05/15&enddate=12/12/2015 

but don't know how retrieve these values in kademi templates. how do this?

according kademi templating guide[1], there request object in context template rendering. request object has params property map of parameter names , values.

so can this:

 $request.params.startdate 

note returns string. if want convert date object use formatter:

$formatter.todate( $request.params.startdate ) 

[1] http://docs.kademi.co/ref/guides/1-templating-overview.html


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -