1
0
mirror of https://github.com/danog/liquid.git synced 2024-11-26 17:24:42 +01:00

Change namespace

This commit is contained in:
Daniil Gentili 2022-01-06 18:43:17 +01:00
parent f491f5ebd2
commit e2740771b6
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
43 changed files with 58 additions and 58 deletions

View File

@ -1,6 +1,6 @@
## Checklist
- [ ] I have searched the [issue list](https://github.com/osteele/liquid/issues)
- [ ] I have searched the [issue list](https://github.com/danog/liquid/issues)
- [ ] I have tested my example against Shopify Liquid. (This isn't necessary if the actual behavior is a panic, or an error for which `IsTemplateError` returns false.)
## Expected Behavior

View File

@ -2,7 +2,7 @@ SOURCEDIR=.
SOURCES := $(shell find $(SOURCEDIR) -name '*.go')
LIB = liquid
PACKAGE = github.com/osteele/liquid
PACKAGE = github.com/danog/liquid
LDFLAGS=
.DEFAULT_GOAL: ci

View File

@ -16,7 +16,7 @@ import (
"os"
"strings"
"github.com/osteele/liquid"
"github.com/danog/liquid"
)
// for testing

View File

@ -3,9 +3,9 @@ package liquid
import (
"io"
"github.com/osteele/liquid/filters"
"github.com/osteele/liquid/render"
"github.com/osteele/liquid/tags"
"github.com/danog/liquid/filters"
"github.com/danog/liquid/render"
"github.com/danog/liquid/tags"
)
// An Engine parses template source into renderable text.
@ -40,7 +40,7 @@ func (e *Engine) RegisterBlock(name string, td Renderer) {
//
// Examples:
//
// * https://github.com/osteele/liquid/blob/master/filters/filters.go
// * https://github.com/danog/liquid/blob/master/filters/filters.go
//
// * https://github.com/osteele/gojekyll/blob/master/filters/filters.go
//

View File

@ -5,7 +5,7 @@ import (
"log"
"strings"
"github.com/osteele/liquid/render"
"github.com/danog/liquid/render"
)
func Example() {

View File

@ -5,7 +5,7 @@ import (
"reflect"
"time"
"github.com/osteele/liquid/values"
"github.com/danog/liquid/values"
)
// Convert should be replaced by values.Convert.

View File

@ -1,7 +1,7 @@
package expressions
import (
"github.com/osteele/liquid/values"
"github.com/danog/liquid/values"
)
func makeRangeExpr(startFn, endFn func(Context) values.Value) func(Context) values.Value {

View File

@ -1,6 +1,6 @@
package expressions
import "github.com/osteele/liquid/values"
import "github.com/danog/liquid/values"
// Context is the expression evaluation context. It maps variables names to values.
type Context interface {

View File

@ -7,7 +7,7 @@ import (
"fmt"
"runtime/debug"
"github.com/osteele/liquid/values"
"github.com/danog/liquid/values"
)
// TODO Expression and Closure are confusing names.

View File

@ -3,7 +3,7 @@ package expressions
import (
"fmt"
"math"
"github.com/osteele/liquid/values"
"github.com/danog/liquid/values"
)
func init() {

View File

@ -4,7 +4,7 @@ import (
"fmt"
"reflect"
"github.com/osteele/liquid/values"
"github.com/danog/liquid/values"
)
// An InterpreterError is an error during expression interpretation.

View File

@ -4,7 +4,7 @@ import (
"fmt"
"testing"
"github.com/osteele/liquid/values"
"github.com/danog/liquid/values"
"github.com/stretchr/testify/require"
)

View File

@ -7,7 +7,7 @@ package expressions
import (
"fmt"
"github.com/osteele/liquid/values"
"github.com/danog/liquid/values"
)
type parseValue struct {

View File

@ -8,7 +8,7 @@ import __yyfmt__ "fmt"
//line expressions.y:2
import (
"fmt"
"github.com/osteele/liquid/values"
"github.com/danog/liquid/values"
"math"
)

View File

@ -6,7 +6,7 @@ import (
"sort"
"strings"
"github.com/osteele/liquid/values"
"github.com/danog/liquid/values"
)
func sortFilter(array []interface{}, key interface{}) []interface{} {

View File

@ -14,7 +14,7 @@ import (
"unicode"
"unicode/utf8"
"github.com/osteele/liquid/values"
"github.com/danog/liquid/values"
"github.com/osteele/tuesday"
)

View File

@ -8,7 +8,7 @@ import (
yaml "gopkg.in/yaml.v2"
"github.com/osteele/liquid/expressions"
"github.com/danog/liquid/expressions"
"github.com/stretchr/testify/require"
)

2
go.mod
View File

@ -1,4 +1,4 @@
module github.com/osteele/liquid
module github.com/danog/liquid
go 1.17

View File

@ -1,7 +1,7 @@
/*
Package liquid is a pure Go implementation of Shopify Liquid templates, developed for use in https://github.com/osteele/gojekyll.
See the project README https://github.com/osteele/liquid for additional information and implementation status.
See the project README https://github.com/danog/liquid for additional information and implementation status.
The liquid package itself is versioned in gopkg.in. Subpackages have no compatibility guarantees. Except where specifically documented, the public entities of subpackages are intended only for use by the liquid package and its subpackages.
@ -9,8 +9,8 @@ The liquid package itself is versioned in gopkg.in. Subpackages have no compatib
package liquid
import (
"github.com/osteele/liquid/render"
"github.com/osteele/liquid/tags"
"github.com/danog/liquid/render"
"github.com/danog/liquid/tags"
)
// Bindings is a map of variable names to values.

View File

@ -1,7 +1,7 @@
package parser
import (
"github.com/osteele/liquid/expressions"
"github.com/danog/liquid/expressions"
)
// ASTNode is a node of an AST.

View File

@ -1,6 +1,6 @@
package parser
import "github.com/osteele/liquid/expressions"
import "github.com/danog/liquid/expressions"
// A Config holds configuration information for parsing and rendering.
type Config struct {

View File

@ -5,7 +5,7 @@ import (
"fmt"
"strings"
"github.com/osteele/liquid/expressions"
"github.com/danog/liquid/expressions"
)
// Parse parses a source template. It returns an AST root, that can be compiled and evaluated.

View File

@ -4,7 +4,7 @@ import (
"io"
"sort"
"github.com/osteele/liquid/parser"
"github.com/danog/liquid/parser"
)
// BlockCompiler builds a renderer for the tag instance.

View File

@ -3,7 +3,7 @@ package render
import (
"fmt"
"github.com/osteele/liquid/parser"
"github.com/danog/liquid/parser"
)
// Compile parses a source template. It returns an AST root, that can be evaluated.

View File

@ -5,7 +5,7 @@ import (
"io"
"testing"
"github.com/osteele/liquid/parser"
"github.com/danog/liquid/parser"
"github.com/stretchr/testify/require"
)

View File

@ -1,7 +1,7 @@
package render
import (
"github.com/osteele/liquid/parser"
"github.com/danog/liquid/parser"
)
// Config holds configuration information for parsing and rendering.

View File

@ -7,7 +7,7 @@ import (
"os"
"strings"
"github.com/osteele/liquid/expressions"
"github.com/danog/liquid/expressions"
)
// Context provides the rendering context for a tag renderer.

View File

@ -8,7 +8,7 @@ import (
"os"
"testing"
"github.com/osteele/liquid/parser"
"github.com/danog/liquid/parser"
"github.com/stretchr/testify/require"
)

View File

@ -1,7 +1,7 @@
package render
import (
"github.com/osteele/liquid/parser"
"github.com/danog/liquid/parser"
)
// An Error is an error during template rendering.

View File

@ -1,7 +1,7 @@
package render
import (
"github.com/osteele/liquid/expressions"
"github.com/danog/liquid/expressions"
)
// nodeContext provides the evaluation context for rendering the AST.

View File

@ -3,8 +3,8 @@ package render
import (
"io"
"github.com/osteele/liquid/expressions"
"github.com/osteele/liquid/parser"
"github.com/danog/liquid/expressions"
"github.com/danog/liquid/parser"
)
// Node is a node of the render tree.

View File

@ -7,7 +7,7 @@ import (
"reflect"
"time"
"github.com/osteele/liquid/values"
"github.com/danog/liquid/values"
)
// Render renders the render tree.

View File

@ -8,7 +8,7 @@ import (
"testing"
"time"
"github.com/osteele/liquid/parser"
"github.com/danog/liquid/parser"
"github.com/stretchr/testify/require"
)

View File

@ -3,9 +3,9 @@ package tags
import (
"io"
e "github.com/osteele/liquid/expressions"
"github.com/osteele/liquid/render"
"github.com/osteele/liquid/values"
e "github.com/danog/liquid/expressions"
"github.com/danog/liquid/render"
"github.com/danog/liquid/values"
)
type caseInterpreter interface {

View File

@ -7,8 +7,8 @@ import (
"io/ioutil"
"testing"
"github.com/osteele/liquid/parser"
"github.com/osteele/liquid/render"
"github.com/danog/liquid/parser"
"github.com/danog/liquid/render"
"github.com/stretchr/testify/require"
)

View File

@ -4,7 +4,7 @@ import (
"io"
"path/filepath"
"github.com/osteele/liquid/render"
"github.com/danog/liquid/render"
)
func includeTag(source string) (func(io.Writer, render.Context) error, error) {

View File

@ -7,8 +7,8 @@ import (
"strings"
"testing"
"github.com/osteele/liquid/parser"
"github.com/osteele/liquid/render"
"github.com/danog/liquid/parser"
"github.com/danog/liquid/render"
"github.com/stretchr/testify/require"
)

View File

@ -8,8 +8,8 @@ import (
yaml "gopkg.in/yaml.v2"
"github.com/osteele/liquid/expressions"
"github.com/osteele/liquid/render"
"github.com/danog/liquid/expressions"
"github.com/danog/liquid/render"
)
// An IterationKeyedMap is a map that yields its keys, instead of (key, value) pairs, when iterated.

View File

@ -10,8 +10,8 @@ import (
yaml "gopkg.in/yaml.v2"
"github.com/osteele/liquid/parser"
"github.com/osteele/liquid/render"
"github.com/danog/liquid/parser"
"github.com/danog/liquid/render"
"github.com/stretchr/testify/require"
)

View File

@ -4,8 +4,8 @@ package tags
import (
"io"
"github.com/osteele/liquid/expressions"
"github.com/osteele/liquid/render"
"github.com/danog/liquid/expressions"
"github.com/danog/liquid/render"
)
// AddStandardTags defines the standard Liquid tags.

View File

@ -6,8 +6,8 @@ import (
"io/ioutil"
"testing"
"github.com/osteele/liquid/parser"
"github.com/osteele/liquid/render"
"github.com/danog/liquid/parser"
"github.com/danog/liquid/render"
"github.com/stretchr/testify/require"
)

View File

@ -3,8 +3,8 @@ package liquid
import (
"bytes"
"github.com/osteele/liquid/parser"
"github.com/osteele/liquid/render"
"github.com/danog/liquid/parser"
"github.com/danog/liquid/render"
)
// A Template is a compiled Liquid template. It knows how to evaluate itself within a variable binding environment, to create a rendered byte slice.

View File

@ -5,7 +5,7 @@ import (
"sync"
"testing"
"github.com/osteele/liquid/render"
"github.com/danog/liquid/render"
"github.com/stretchr/testify/require"
)