From 1a97e7fe4924e53b8f4c60f655cb8ea9d3ac1fdf Mon Sep 17 00:00:00 2001 From: Jack Farley Date: Sat, 6 May 2023 00:44:01 +1200 Subject: [PATCH] Add escaping of curly braces to docs --- site/content/docs/03-template-syntax.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/site/content/docs/03-template-syntax.md b/site/content/docs/03-template-syntax.md index 8038e972be..27b6686cfc 100644 --- a/site/content/docs/03-template-syntax.md +++ b/site/content/docs/03-template-syntax.md @@ -149,6 +149,14 @@ Text can also contain JavaScript expressions:
{(/^[A-Za-z ]+$/).test(value) ? x : y}
``` +--- + +To include regular curly braces in the HTML, they must either be included as string Javascript expressions or their [HTML Entity](https://developer.mozilla.org/docs/Glossary/Entity) strings used + +```html +{'{'} in curly braces {'}'} or { in curly braces } or { in curly braces } +``` + ### Comments ---