templdev

package
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 Imports: 9 Imported by: 0

Documentation

Overview

Package templdev is a runtime package added by the devmode package. It's not intended to be used directly. It differs from the original templ runtime package, where it doesn't rely on environment variables. It also doesn't change the Go file if it's just a text change. This makes it better suited to integrate into build systems and third-party file watchers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteString

func WriteString(w io.Writer, lineNum int, _ string) error

WriteString writes the string at the index in the _templ.txt file. This is intended to be used with the devmode package to allow for live reloading of templates. It is not intended to be used in production code.

Types

This section is empty.

Jump to

Keyboard shortcuts

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