Skip to content

Commit

Permalink
Upgrade to v4
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang authored and sauerbraten committed Jul 3, 2020
1 parent afbefdf commit bb90cf9
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 15 deletions.
8 changes: 4 additions & 4 deletions examples/asset_packaging/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ import (
"strings"
"time"

"github.com/CloudyKit/jet/v3"
"github.com/CloudyKit/jet/v3/examples/asset_packaging/assets/templates"
"github.com/CloudyKit/jet/v3/loaders/httpfs"
"github.com/CloudyKit/jet/v3/loaders/multi"
"github.com/CloudyKit/jet/v4"
"github.com/CloudyKit/jet/v4/examples/asset_packaging/assets/templates"
"github.com/CloudyKit/jet/v4/loaders/httpfs"
"github.com/CloudyKit/jet/v4/loaders/multi"
)

// Initialize the set with both local files as well as the packaged
Expand Down
2 changes: 1 addition & 1 deletion examples/todos/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
"reflect"
"strings"

"github.com/CloudyKit/jet/v3"
"github.com/CloudyKit/jet/v4"
)

var views = jet.NewHTMLSet("./views")
Expand Down
2 changes: 1 addition & 1 deletion jettest/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"strings"
"testing"

"github.com/CloudyKit/jet/v3"
"github.com/CloudyKit/jet/v4"
)

// TestingSet holds a template set for running tests
Expand Down
4 changes: 2 additions & 2 deletions loaders/httpfs/httpfs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"net/http"
"testing"

"github.com/CloudyKit/jet/v3"
"github.com/CloudyKit/jet/v3/jettest"
"github.com/CloudyKit/jet/v4"
"github.com/CloudyKit/jet/v4/jettest"
)

func TestNilHTTPFileSystem(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion loaders/httpfs/loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"net/http"
"os"

"github.com/CloudyKit/jet/v3"
"github.com/CloudyKit/jet/v4"
)

type httpFileSystemLoader struct {
Expand Down
2 changes: 1 addition & 1 deletion loaders/multi/multi.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"io"
"os"

"github.com/CloudyKit/jet/v3"
"github.com/CloudyKit/jet/v4"
)

// Multi implements jet.Loader interface and tries to load templates from a list of custom loaders.
Expand Down
6 changes: 3 additions & 3 deletions loaders/multi/multi_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"net/http"
"testing"

"github.com/CloudyKit/jet/v3"
"github.com/CloudyKit/jet/v3/jettest"
"github.com/CloudyKit/jet/v3/loaders/httpfs"
"github.com/CloudyKit/jet/v4"
"github.com/CloudyKit/jet/v4/jettest"
"github.com/CloudyKit/jet/v4/loaders/httpfs"
)

func TestZeroLoaders(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion utils/visitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package utils
import (
"fmt"

"github.com/CloudyKit/jet/v3"
"github.com/CloudyKit/jet/v4"
)

// Walk walks the template ast and calls the Visit method on each node of the tree
Expand Down
2 changes: 1 addition & 1 deletion utils/visitor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"reflect"
"testing"

"github.com/CloudyKit/jet/v3"
"github.com/CloudyKit/jet/v4"
)

var Set = jet.NewHTMLSet("")
Expand Down

0 comments on commit bb90cf9

Please sign in to comment.