1
0
mirror of https://github.com/danog/liquid.git synced 2024-11-30 08:28:58 +01:00

Package docs

This commit is contained in:
Oliver Steele 2017-08-08 16:42:32 -04:00
parent c50491f609
commit 51d7166e88
8 changed files with 10 additions and 10 deletions

View File

@ -1,3 +1,4 @@
// Package evaluator is an interim internal package that forwards to package values.
package evaluator package evaluator
import ( import (

View File

@ -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 %}. // 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 package expressions

View File

@ -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 package filters
import ( import (

View File

@ -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 package parser
import ( import (

View File

@ -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 package render
import ( import (

View File

@ -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 package strftime
import ( import (
@ -10,7 +10,7 @@ import (
"unicode/utf8" "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) { func Strftime(format string, t time.Time) (string, error) {
return re.ReplaceAllStringFunc(format, func(directive string) string { return re.ReplaceAllStringFunc(format, func(directive string) string {
var ( var (

View File

@ -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 package tags
import ( import (

View File

@ -1,9 +1,8 @@
package values // Package values is an internal package that defines methods such as sorting, comparison, and type conversion, that apply to interface types.
// Package evaluator 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. // 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, // Since the intent is to provide runtime services for the Liquid expression interpreter,
// this package does not implement "generic" generics. // this package does not implement "generic" generics.
// It attempts to implement Liquid semantics (which are largely Ruby semantics). // It attempts to implement Liquid semantics (which are largely Ruby semantics).
package values