Skip to content

Commit

Permalink
fix: embed glimmer syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
IgnaceMaes committed Apr 27, 2024
1 parent 35af678 commit f76f9e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/assemble.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,7 @@ function generateComponents(mappings: Record<string, Record<string, string>>) {

const content = Object.entries(variants)
.map(([variant, content], index) => {
return `\n<g v-${
index > 0 ? "else-" : ""
}if="displayWeight === '${variant}'">${content}</g>`;
return `\n {{#if (this.eq this.weight "${variant}")}}<g>${content}</g>{{/if}}`;
})
.join("");

Expand Down Expand Up @@ -143,6 +141,8 @@ export default class Ph${name} extends Component<Ph${name}Signature> {
: undefined;
}
eq = (a: string, b: string) => a === b;
<template>
<svg
xmlns="http://www.w3.org/2000/svg"
Expand Down

0 comments on commit f76f9e6

Please sign in to comment.