Ignore mustache interpolation in brick source file/files
- Dominant language
- Dart
- Stars
- 1.1k
- Forks
- 113
- PR merge metrics
- No merged PRs in 30d
Description
**Description**
Add the ability to ignore mustache `{{}}` interpolation. There may be cases in which a brick uses a framework which itself has mustache syntax and we want to preserve the `{{}}` that's inside of the brick.
**Requirements**
- [ ] Ability to label a file or `{{}}` as ignored/preserved `ignore mustache`.
- [ ] Generated brick that doesn't parse/interpolate the labeled/preserved `{{}}` with cli vars
**Additional Context**
I have a __brick__ file which contains a vue component.
```vue
Undone
{{ countDone }}
Done
{{ countUndone }}
const { countDone, countUndone } = useTodos()
```
Vue uses mustache syntax to inject variables into it's components/templates. When I generate my brick I end up with this.
```vue
Undone
Done
const { countDone, countUndone } = useTodos()
```
Not sure best way to do this. Could one of the following work?
- `{{! }}`
- `{{@ }}`
- `{{- }}`
I tried `{{{}}}` but it didn't work. Thanks so much for your suppport.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.