Skip to content

Commit

Permalink
escaping params
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonvarga committed Apr 10, 2024
1 parent e730520 commit a971299
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions content/collections/docs/antlers.md
Original file line number Diff line number Diff line change
Expand Up @@ -1285,6 +1285,14 @@ The `@` can also be used to escape individual braces within tag parameters or st
// "string {foo} bar"
```

### Tag parameters

You may ignore the contents of tag parameters by prefixing the parameter with a backslash. This could be useful allow you to avoid having to escape each curly brace like the example above if you are providing some JS/JSON in a parameter:

```
{{ form:create \x-data="{ submittable: false }" }}
```

### The `noparse` Tag

Use this method if you need to prevent entire code blocks from being parsed.
Expand Down

0 comments on commit a971299

Please sign in to comment.