Documentation ¶
Overview ¶
templ: version: v0.2.793
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func C ¶
Example ¶
package main import ( "context" "os" "github.com/jfbus/templui/components/a" "github.com/jfbus/templui/components/style" ) func main() { c := a.C(a.D{ Href: "https://www.example.com", Text: "Example", CustomStyle: style.Custom{ "a": style.D{style.Add("text-sm")}, }, }) _ = c.Render(context.TODO(), os.Stdout) }
Output: <a href="https://www.example.com" class="hover:underline text-sm">Example</a>
Types ¶
Click to show internal directories.
Click to hide internal directories.