literal

package
v0.5.12 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Tag feature.Tag = "njn-fields-literal"
)

Variables

View Source
var (
	TagNames = []string{"br", "hr"}
)

Functions

This section is empty.

Types

type CField

type CField struct {
	feature.CEnjinField
	// contains filtered or unexported fields
}

func (*CField) AddTag

func (f *CField) AddTag(name string) MakeField

func (*CField) Defaults

func (f *CField) Defaults() MakeField

func (*CField) Init

func (f *CField) Init(this interface{})

func (*CField) Make

func (f *CField) Make() Field

func (*CField) NjnClass

func (f *CField) NjnClass() (tagClass feature.NjnClass)

func (*CField) NjnFieldNames

func (f *CField) NjnFieldNames() (names []string)

func (*CField) PrepareNjnData

func (f *CField) PrepareNjnData(re feature.EnjinRenderer, tagName string, field map[string]interface{}) (data map[string]interface{}, err error)

func (*CField) RemoveTag

func (f *CField) RemoveTag(name string) MakeField

func (*CField) SetTagClass

func (f *CField) SetTagClass(tagClass feature.NjnClass) MakeField

type Field

type Field interface {
	feature.EnjinField
}

type MakeField

type MakeField interface {
	AddTag(name string) MakeField
	RemoveTag(name string) MakeField

	Defaults() MakeField

	SetTagClass(tagClass feature.NjnClass) MakeField

	Make() Field
}

func New

func New() (field MakeField)

Jump to

Keyboard shortcuts

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