I'd like to extend the built in #{a template tag. For example, instead of writing every time:
#{a @Controller.Action(parameter.slugify()) /}
Where if parameter="This Is a Test" then the generated href is http://localhost/controller/action/this-is-a-test
I'd like to extend it so that the parameter is always slugified by default without explicitly doing it with .slugify().
Thanks
What you want to do is define your own fast tags. There is a good example here. Check this answer as well.
The code would probably look like this:
and be called like this in your template: