tags

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2017 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddJekyllTags

func AddJekyllTags(e *liquid.Engine, c *config.Config, includeDirs []string, lh LinkTagHandler)

AddJekyllTags adds the Jekyll tags to the Liquid engine.

func CreateUnimplementedTag

func CreateUnimplementedTag() liquid.Renderer

CreateUnimplementedTag creates a tag definition that prints a warning the first time it's rendered, and otherwise does nothing.

Types

type LinkTagHandler

type LinkTagHandler func(string) (string, bool)

A LinkTagHandler given an include tag file name returns a URL.

type ParsedArgs

type ParsedArgs struct {
	Args    []string
	Options map[string]optionRecord
}

ParsedArgs holds the parsed arguments from ParseArgs.

func ParseArgs

func ParseArgs(argsline string) (*ParsedArgs, error)

ParseArgs parses a tag argument line {% include arg1 arg2 opt=a opt2='b' %}

func (*ParsedArgs) EvalOptions

func (r *ParsedArgs) EvalOptions(ctx render.Context) (map[string]interface{}, error)

EvalOptions evaluates unquoted options.

Jump to

Keyboard shortcuts

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