Skip to content
This repository has been archived by the owner on Mar 9, 2022. It is now read-only.

Commit

Permalink
Update CodeBlock syntax
Browse files Browse the repository at this point in the history
Allows us to write code samples as they are, improving code readability
  • Loading branch information
amyrlam committed Jan 12, 2022
1 parent c274e73 commit 0550008
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions website/app/templates/engineering.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -224,12 +224,14 @@
<code class="ds-code">@stretched</code>
attribute:
{{! prettier-ignore-start }}
{{! template-lint-disable no-triple-curlies }}
<CodeBlock
@language="markup"
@code='
<FlightIcon @name="zap" @size="24" @stretched=&lbrace;&lbrace;true&rbrace;&rbrace; />
'
@code={{{'
<FlightIcon @name="zap" @size="24" @stretched={{true}} />
'}}}
/>
{{! template-lint-enable no-triple-curlies }}
{{! prettier-ignore-start }}
</p>

Expand Down Expand Up @@ -258,12 +260,14 @@
<code class="ds-code">@isInlineBlock</code>
to false:
{{! prettier-ignore-start }}
{{! template-lint-disable no-triple-curlies }}
<CodeBlock
@language="markup"
@code='
<FlightIcon @name="triangle-fill" @isInlineBlock=&lbrace;&lbrace;false&rbrace;&rbrace; />
'
@code={{{'
<FlightIcon @name="triangle-fill" @isInlineBlock={{false}} />
'}}}
/>
{{! template-lint-enable no-triple-curlies }}
{{! prettier-ignore-end }}
</p>
</div>
Expand Down

0 comments on commit 0550008

Please sign in to comment.