Log in Sign up

How to modify names of tags for display?

In a page template I can iterate over my tags via {{#tags}} ... {{/tags}}. I then can display the tag name via {{name}}. So far, so good.

Some of my source tags start with "cat-" (e.g. "cat-science" or "cat-computer"). However I would like to display only the part after "cat-" (i.e. "science" or resp. "computer"). Can I do this?


2 years ago, 3 replies   Edit question

I saw one feature which might help me: The moustache template language offers lambdas. -- Could I use them to replace in any tag name "cat-" with the empty string?

Answered 2 years ago · Edit answer

I would use some JavaScript to accomplish this - this is not possible within the template engine at the moment

Answered 2 years ago · Edit answer

Thanks. Will try that.

Answered 2 years ago · Edit answer