We've retired the forum in favor of GitHub Discussions.

New conversations can be started on GitHub. Existing conversations will remain for a while longer.

Head over to GitHub →

Use {{ variables }} in markdown content

Robin van der Vleuten October 30, 2020 by Robin van der Vleuten

I have some dynamic values I would like to display inline with my content.

This is the content of an article where I would like to display an inline {{ value }}.

Then I render my content just like you normally would.

<div>
  {{ content }}
</div>

But Statamic renders the content as is.

<div>
  This is the content of an article where I would like to display an inline {{ value }}.
</div>

How do I get this value interpolated when rendering the content?

Answered by Erin Dalzell!
>>>>>>> Answered <<<<<<<
1 Reply
3 Followers