templgithub.com/a-h/templ/generator/test-text-whitespace Index | Files

package testtextwhitespace

import "github.com/a-h/templ/generator/test-text-whitespace"

Index

Constants

const InlineElementsAreNotPaddedExpected = `<p>Inline text <b>is spaced properly</b> without adding extra spaces.</p>`
const WhiteSpaceAroundTemplatedValuesExpected = `<div>templ allows whitespace around templated values.</div>`
const WhiteSpaceAroundValuesExpected = `<p>templ allows strings to be included in sentences.</p>`
const WhiteSpaceInHTMLIsNormalisedExpected = `<p>newlines and other whitespace are stripped but it is normalised like HTML.</p>`
const WhitespaceIsAddedWithinTemplStatementsExpected = `<p>This is some text. So is this.</p>`

Functions

func InlineElementsAreNotPadded

func InlineElementsAreNotPadded() templ.Component

func WhiteSpaceAroundTemplatedValues

func WhiteSpaceAroundTemplatedValues(prefix, statement string) templ.Component

func WhiteSpaceAroundValues

func WhiteSpaceAroundValues() templ.Component

func WhiteSpaceInHTMLIsNormalised

func WhiteSpaceInHTMLIsNormalised() templ.Component

func WhitespaceIsAddedWithinTemplStatements

func WhitespaceIsAddedWithinTemplStatements() templ.Component

Source Files

template_templ.go

Version
v0.3.857 (latest)
Published
Mar 25, 2025
Platform
linux/amd64
Imports
2 packages
Last checked
1 week ago

Tools for package owners.