Iโve just installed a new Discourse theme component here which enables syntax highlighting for gjs (template-tag) files. To use it, tag your code fences with gjs
like this:
```gjs
/* Code goes here */
```
For example:
import WeatherSummary from './weather-summary.js';
const Greeting = <template>
<p>Hello, {{@name}}!</p>
</template>;
function isBirthday(dateOfBirth) {
const now = new Date();
return (
dateOfBirth.getDate() === now.getDate() &&
dateOfBirth.getMonth() === now.getMonth()
);
}
<template>
<div>
<Greeting @name="Chris" />
{{#if (isBirthday @user.dateOfBirth)}}
<Celebration type='birthday' />
{{/if}}
<WeatherSummary />
</div>
</template>
Thanks to @NullVoxPopuli for the highlightjs-glimmer package which weโre leaning on for this