mirror of
https://github.com/danog/liquid.git
synced 2024-11-30 04:19:50 +01:00
Package docs
This commit is contained in:
parent
c50491f609
commit
51d7166e88
@ -1,3 +1,4 @@
|
||||
// Package evaluator is an interim internal package that forwards to package values.
|
||||
package evaluator
|
||||
|
||||
import (
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Package expressions parses and evaluates the expression language.
|
||||
// Package expressions is an internal package that parses and evaluates the expression language.
|
||||
//
|
||||
// This is the language that is used inside Liquid object and tags; e.g. "a.b[c]" in {{ a.b[c] }}, and "pages = site.pages | reverse" in {% assign pages = site.pages | reverse %}.
|
||||
package expressions
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Package filters defines the standard Liquid filters.
|
||||
// Package filters is an internal package that defines the standard Liquid filters.
|
||||
package filters
|
||||
|
||||
import (
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Package parser parses template source into an abstract syntax tree.
|
||||
// Package parser is an internal package that parses template source into an abstract syntax tree.
|
||||
package parser
|
||||
|
||||
import (
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Package render renders a compiled template parse tree.
|
||||
// Package render is an internal package that renders a compiled template parse tree.
|
||||
package render
|
||||
|
||||
import (
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Package strftime wraps the C stdlib strftime and strptime functions.
|
||||
// Package strftime implements a Strftime function that is compatible with Ruby's Time.strftime.
|
||||
package strftime
|
||||
|
||||
import (
|
||||
@ -10,7 +10,7 @@ import (
|
||||
"unicode/utf8"
|
||||
)
|
||||
|
||||
// Strftime clones Ruby's Time.strftime
|
||||
// Strftime is compatible with Ruby's Time.strftime.
|
||||
func Strftime(format string, t time.Time) (string, error) {
|
||||
return re.ReplaceAllStringFunc(format, func(directive string) string {
|
||||
var (
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Package tags defines the standard Liquid tags.
|
||||
// Package tags is an internal package that defines the standard Liquid tags.
|
||||
package tags
|
||||
|
||||
import (
|
||||
|
@ -1,9 +1,8 @@
|
||||
package values
|
||||
|
||||
// Package evaluator defines methods such as sorting, comparison, and type conversion, that apply to interface types.
|
||||
// Package values is an internal package that defines methods such as sorting, comparison, and type conversion, that apply to interface types.
|
||||
//
|
||||
// It is similar to, and makes heavy use of, the reflect package.
|
||||
//
|
||||
// Since the intent is to provide runtime services for the Liquid expression interpreter,
|
||||
// this package does not implement "generic" generics.
|
||||
// It attempts to implement Liquid semantics (which are largely Ruby semantics).
|
||||
package values
|
||||
|
Loading…
Reference in New Issue
Block a user