package css

import "github.com/gohugoio/hugo/tpl/css"

Index

Types

type Namespace

type Namespace struct {
	// contains filtered or unexported fields
}

Namespace provides template functions for the "css" namespace.

func (*Namespace) PostCSS

func (ns *Namespace) PostCSS(args ...any) (resource.Resource, error)

PostCSS processes the given Resource with PostCSS.

func (*Namespace) Quoted

func (ns *Namespace) Quoted(v any) css.QuotedString

Quoted returns a string that needs to be quoted in CSS.

func (*Namespace) Sass

func (ns *Namespace) Sass(args ...any) (resource.Resource, error)

Sass processes the given Resource with SASS.

func (*Namespace) TailwindCSS

func (ns *Namespace) TailwindCSS(args ...any) (resource.Resource, error)

TailwindCSS processes the given Resource with tailwindcss.

func (*Namespace) Unquoted

func (ns *Namespace) Unquoted(v any) css.UnquotedString

Unquoted returns a string that does not need to be quoted in CSS.

Source Files

css.go

Version
v0.144.2 (latest)
Published
Feb 19, 2025
Platform
linux/amd64
Imports
18 packages
Last checked
7 hours ago

Tools for package owners.