Log in Sign up

Escaping template variables in posts?

I am writing a post to share some setting, seems the variables will be disappeared if there is a conflict of template. Here's what I have on iA Writer and this is what it looks like after rendering by Blot.

4 replies

I think they need to be escaped. I'd first try '{{ PAGE_ID}}' to see if it works.

Answered 4 months ago · Improve this answer

Yes, so do I, but I cannot find the way to escape as I have tried ' but didn’t work.

Answered 4 months ago · Improve this answer

Does escaping like this work? \{{ PAGE_ID}}. I think this is because Blot uses Mustache to render templates

Answered 4 months ago · Improve this answer

Thanks! I’ve tried the pattern by using \ at the beginning but it didn’t work.

Answered 4 months ago · Improve this answer

Markdown allowed
Question or feedback?
Contact us

Tags

developers 61 questions bug 30 questions templates 21 questions posts 20 questions meta 19 questions metadata 17 questions resolved 16 questions how 12 questions markdown 9 questions tags 9 questions More tags →
Subscribe for changes
RSS Feed of latest questions