jolheiser
/
templ-helix
Archived
1
0
Fork 0
This repository has been archived on 2023-10-11. You can view files and clone it, but cannot push or open issues/pull-requests.
templ-helix/test.templ

25 lines
483 B
Plaintext
Raw Normal View History

package main
import "strconv"
var red = "#ff0000";
css className() {
background-color: #ffffff;
color: { red };
}
script graph(data []any) {
const chart = LightweightCharts.createChart(document.body, { width: 400, height: 300 });
const lineSeries = chart.addLineSeries();
lineSeries.setData(data);
}
templ hello(name string, vars []string) {
<div>Hello, { name }</div>
for i, path := range vars {
<a href={ templ.URL(path) }>lol { strconv.Itoa(i) }/</a>
}
}