Template entries

Contract

A template entry is a top-level Go declaration in a .gx file whose value is a GX markup literal. The entry name is the Go identifier on that declaration.

Example:

package notesui

var hello = <p><Text value={"Hello Bus"}></Text></p>

The entry name is hello.

v0.1.3 entries may contain lowercase safe element tags, attributes accepted by the v0.1.2 linter, nested markup, and the built-in Text source primitive with a quoted or braced value. Entry lookup is case-sensitive and package-local. Duplicate names are rejected by the source linter before compile.

Entries that require function component resolution are rejected in this patch:

package notesui

var card = <Card></Card>