hugo: Index | Files

package babel

import ""


Package Files


type Client Uses

type Client struct {
    // contains filtered or unexported fields

Client is the client used to do Babel transformations.

func New Uses

func New(rs *resources.Spec) *Client

New creates a new Client with the given specification.

func (*Client) Process Uses

func (c *Client) Process(res resources.ResourceTransformer, options Options) (resource.Resource, error)

Process transforms the given Resource with the Babel processor.

type Options Uses

type Options struct {
    Config string // Custom path to config file

    Minified   bool
    NoComments bool
    Compact    *bool
    Verbose    bool
    NoBabelrc  bool

Options from

func DecodeOptions Uses

func DecodeOptions(m map[string]interface{}) (opts Options, err error)

Package babel imports 13 packages (graph) and is imported by 5 packages. Updated 2020-10-22. Refresh now. Tools for package owners.