integration-templ

command module
v0.0.0-...-3b5aa22 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 27, 2024 License: MIT Imports: 7 Imported by: 0

README

Templ Integration

This is an example of how to integrate the awesome Templ with gcss. It's on the basic side, but it should give you a good idea of how to get started.

I will include a better example in the future, but for now, this should be enough to get you started.

Notes

The Stylesheet type is there till we decide if it will be in the package itself or not. Though this is unlikely to change till there is a clear need for it.

When you render the template, you will see that it renders two buttons that share the same style. This is done through the usage of the Once handler provided by templ and allows you to selectively render styles when they are required.

Documentation

Overview

templ: version: v0.2.707

templ: version: v0.2.707

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL