scopedcss

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Inline added in v0.0.3

func Inline(path string, tf *parser.TemplateFile, replace func(css string) string) (err error)

Inline processes a template file looking for <style scoped> elements. When it finds them, it processes the styles and moves them to the top of the template file, only including them once.

func Rewrite

func Rewrite(path string, tf *parser.TemplateFile) (css string, err error)

Rewrite processes a template file, extracting scoped CSS styles from <style scoped> elements, appending them to a CSS string, and removing those elements from the template.

Types

This section is empty.

Jump to

Keyboard shortcuts

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