# Topic Template "Templates"

**URL:** <https://meta.discourse.org/t/topic-template-templates/63384>\
**Category:** Feature\
**Created:** [25.Май.2017 18:38:33 UTC](https://meta.discourse.org/t/topic-template-templates/63384 "2017-05-25T18:38:33Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [30.Апрель.2019 02:29:52 UTC](https://meta.discourse.org/t/topic-template-templates/63384/7 "2019-04-30T02:29:52Z")

</div>

> [@John\_Lehmann](#):
>
> 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.

You can place a hidden `<div>` in you content if you need to do this.

```plaintext
<div data-template='unique'>
I am unique content
</div>

<div data-template='common'>
I am common content
</div>

```

I am unique content

I am common content

Or you could use an HTML comment to denote where common starts and unique ends

---

_[View the full topic](https://meta.discourse.org/t/topic-template-templates/63384)._
