figma / code-snippet-editor-plugin

Translate component variants, properties, and more into dynamic code snippets for your design system.
https://www.figma.com/community/plugin/1311777988952403297/code-snippet-editor
MIT License
126 stars 11 forks source link

Allows for bracket escaping #19

Closed jake-figma closed 5 months ago

jake-figma commented 5 months ago

Closes #9

If you need to write the text "{{something}}" explicitly in your rendered code, you can escape that text with a single backslash prefix like "\{{something}}".

A more realistic example is the Ember language which requires something like <Button @label={{t "Value"}} />. To achieve this, the template would escape the outer brackets with a single prefix. <Button @label=\{{t "{{something}}"}} />.