package main import "github.com/alecthomas/chroma/lexers" func getLanguages() []string { names := lexers.Names(false) names = append([]string{"Determine from source"}, names...) return names } templ chooseSyntax(name string) { } templ fileUpload(text, name, id string) { No file chosen 0 put me.files[0].name into text's innerText else put 'No file chosen' into text's innerText end` } /> } templ boostButton(label, to string) { { label } } templ submitFormButton(label string) { } templ NavMenu(items []MenuItem, current int, swapOob bool) { } templ CombineTempls(top, bottom templ.Component) { {! top } {! bottom } } templ ErrorMessage(msg, id string) {
{ msg }
} templ ToastError(message string) {
🞬 { message }
}