package testtextwhitespace
import "github.com/a-h/templ/generator/test-text-whitespace"
Index ¶
- Constants
- func InlineElementsAreNotPadded() templ.Component
- func WhiteSpaceAroundTemplatedValues(prefix, statement string) templ.Component
- func WhiteSpaceAroundValues() templ.Component
- func WhiteSpaceInHTMLIsNormalised() templ.Component
- func WhitespaceIsAddedWithinTemplStatements() templ.Component
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 WhiteSpaceAroundTemplatedValues ¶
func WhiteSpaceAroundValues ¶
func WhiteSpaceInHTMLIsNormalised ¶
func WhitespaceIsAddedWithinTemplStatements ¶
Source Files ¶
- Version
- v0.3.857 (latest)
- Published
- Mar 25, 2025
- Platform
- linux/amd64
- Imports
- 2 packages
- Last checked
- 1 week ago –
Tools for package owners.