templar

module
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2025 License: MIT

README

templar

Go Reference

Extensions for Templ.

Extensions

  • scopedcss: styled-jsx for Templ. Add support for <style scoped> to your Templ templates. See the testdata for examples.
  • devmode: updates generated *_templ.go files to make it easier to support livereload with third-party build systems and file watchers. It does this by not relying on environment variables and only modifying the Go file if it's a non-text change. More details in this issue.

Install

go get github.com/matthewmueller/templar

Development

First, clone the repo:

git clone https://github.com/matthewmueller/templar
cd templar

Next, install dependencies:

go mod tidy

Finally, try running the tests:

go test ./...

License

MIT

Directories

Path Synopsis
Package devmode updates the generated *_templ.go file to work better with a third-party build systems and file watchers.
Package devmode updates the generated *_templ.go file to work better with a third-party build systems and file watchers.
internal
Package templdev is a runtime package added by the devmode package.
Package templdev is a runtime package added by the devmode package.

Jump to

Keyboard shortcuts

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