learnlytics-go/templ/generator/test-go-template-in-templ/template.templ

15 lines
257 B
Plaintext
Raw Normal View History

2025-03-20 12:35:13 +01:00
package testgotemplates
import "html/template"
var goTemplate = template.Must(template.New("example").Parse("<div>{{ . }}</div>"))
templ Example() {
<!DOCTYPE html>
<html>
<body>
@templ.FromGoHTML(goTemplate, "Hello, World!")
</body>
</html>
}