My goal is to have some common content across many category descriptions.
And so without knowing a better way, I would also vote for the the utility of this feature. Especially because Discourse is so powerful that it overlaps the functionality of a Wiki-like software, but templates would seem to be a key missing element for that user case.
@sam , would you mind elaborating on how to use the API for this? Let’s imagine that for 30 topics (which happen to be the description of the Category), in the first half of the text you have some category-specific content, but the second half should be a generic template text. We can imagine how this would look if this feature was supported, where the second half is just {{my_template}}.
With the scripted API approach, you’d loop through the topics and update them. But because there’s no magical template string (it’s already expanded), you’d have to match the “old” template text to replace it with the new text. This could be a pretty ugly regex. Is the right approach here as easy as using some hidden HTML markup, such as divs? Thanks.