I'm trying to do this:
"/templates/$tml"{
view: "/templates/$tml"
}
and this:
"/templates/$tml"{
view: "/templates/${tml}"
}
and this:
"/templates/$tml"{
view: "/templates/${params.tml}"
}
But none of them work. In the template folder I have a a lot of GSP files and I don't want to map them one by one, instead I want some generic code which map them like the controller mapping.
Thanks for help!
Did you try something like this?
In the
UrlMappings.groovy
:In the
TemplatesController.groovy
: