I want to understand how url
helper works.
For example, in my template I have:
<a href="{{url "Pages.IndexPages" ???}}">my super url</a>
and in controller:
func (c Pages) IndexPages() revel.Result {
...
}
I need url like
http://localhost:9000/pages?page=1
I don't want to write:
func (c Pages) IndexPages(page int) revel.Result {
because I want to check if the controller contains the param page
.
How to add my template var to c.Params.Query
with the url
helper?