Skip to content

Commit

Permalink
Use self hosted raymond templating library
Browse files Browse the repository at this point in the history
  • Loading branch information
tommysitu committed Mar 12, 2024
1 parent 98d183a commit 9e0fc31
Show file tree
Hide file tree
Showing 25 changed files with 34 additions and 7 deletions.
2 changes: 1 addition & 1 deletion core/hoverfly_funcs.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"github.com/SpectoLabs/hoverfly/core/models"
"github.com/SpectoLabs/hoverfly/core/modes"
"github.com/SpectoLabs/hoverfly/core/util"
"github.com/aymerick/raymond"
"github.com/SpectoLabs/raymond"
log "github.com/sirupsen/logrus"
)

Expand Down
2 changes: 1 addition & 1 deletion core/journal/journal_index.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
v2 "github.com/SpectoLabs/hoverfly/core/handlers/v2"
"github.com/SpectoLabs/hoverfly/core/models"
"github.com/SpectoLabs/hoverfly/core/util"
"github.com/aymerick/raymond"
"github.com/SpectoLabs/raymond"
"strings"
)

Expand Down
2 changes: 1 addition & 1 deletion core/models/cached_response.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package models

import (
"github.com/aymerick/raymond"
"github.com/SpectoLabs/raymond"
)

type CachedResponse struct {
Expand Down
2 changes: 1 addition & 1 deletion core/templating/template_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"strings"
"time"

"github.com/aymerick/raymond"
"github.com/SpectoLabs/raymond"
"github.com/pborman/uuid"

"github.com/SpectoLabs/hoverfly/core/util"
Expand Down
2 changes: 1 addition & 1 deletion core/templating/templating.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/brianvoe/gofakeit/v6"

"github.com/SpectoLabs/hoverfly/core/models"
"github.com/aymerick/raymond"
"github.com/SpectoLabs/raymond"

log "github.com/sirupsen/logrus"
)
Expand Down
3 changes: 2 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ require (
github.com/ChrisTrenkamp/xsel v0.9.6
github.com/SpectoLabs/goproxy v0.0.0-20220724221645-71c396c297b7
github.com/SpectoLabs/goproxy/ext v0.0.0-20220724221645-71c396c297b7
github.com/SpectoLabs/raymond v2.0.2+incompatible
github.com/antonholmquist/jason v1.0.1-0.20160829104012-962e09b85496
github.com/aymerick/raymond v2.0.2+incompatible
github.com/beevik/etree v1.1.0
github.com/boltdb/bolt v1.2.1-0.20160424201119-d97499360d1e
github.com/brianvoe/gofakeit/v6 v6.19.0
Expand Down Expand Up @@ -45,6 +45,7 @@ require (

require (
github.com/BurntSushi/toml v1.2.1 // indirect
github.com/aymerick/raymond v2.0.2+incompatible // indirect
github.com/corpix/uarand v0.0.0-20170903190822-2b8494104d86 // indirect
github.com/fsnotify/fsnotify v1.5.4 // indirect
github.com/google/go-cmp v0.5.9 // indirect
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ github.com/SpectoLabs/goproxy v0.0.0-20220724221645-71c396c297b7 h1:TTZvVLRa0sjo
github.com/SpectoLabs/goproxy v0.0.0-20220724221645-71c396c297b7/go.mod h1:tj8G0iNIS9fkG5PSrzQYLUXcvhtqI8XbIld9PqpYaFw=
github.com/SpectoLabs/goproxy/ext v0.0.0-20220724221645-71c396c297b7 h1:MxMvFwL66nKnrmjHhp9GODbHVZ+/qS2MmvnXz/nDdR4=
github.com/SpectoLabs/goproxy/ext v0.0.0-20220724221645-71c396c297b7/go.mod h1:rnDN1CpKP9iJXwxRtnvM7d5wdPHQY0K5NkHeXWPlQ+o=
github.com/SpectoLabs/raymond v2.0.2+incompatible h1:75q2/r2f6U38xSTDHUbJWZnkVY9dKUeQi8M9HMa1icc=
github.com/SpectoLabs/raymond v2.0.2+incompatible/go.mod h1:Cv+3TFLm3T7C7ML7gEK4HnHcTpfc4HjJFWvS91cc6tw=
github.com/ajstarks/svgo v0.0.0-20180226025133-644b8db467af/go.mod h1:K08gAheRH3/J6wwsYMMT4xOr94bZjxIelGM0+d/wbFw=
github.com/antonholmquist/jason v1.0.1-0.20160829104012-962e09b85496 h1:dESITdufxuiwgQh1YPiPupEXORHTYvY8tr40nvrWelo=
github.com/antonholmquist/jason v1.0.1-0.20160829104012-962e09b85496/go.mod h1:+GxMEKI0Va2U8h3os6oiUAetHAlGMvxjdpAH/9uvUMA=
Expand Down
22 changes: 22 additions & 0 deletions vendor/github.com/SpectoLabs/raymond/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 3 additions & 1 deletion vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,14 @@ github.com/SpectoLabs/goproxy
# github.com/SpectoLabs/goproxy/ext v0.0.0-20220724221645-71c396c297b7
## explicit
github.com/SpectoLabs/goproxy/ext/auth
# github.com/SpectoLabs/raymond v2.0.2+incompatible
## explicit
github.com/SpectoLabs/raymond
# github.com/antonholmquist/jason v1.0.1-0.20160829104012-962e09b85496
## explicit
github.com/antonholmquist/jason
# github.com/aymerick/raymond v2.0.2+incompatible
## explicit
github.com/aymerick/raymond
github.com/aymerick/raymond/ast
github.com/aymerick/raymond/lexer
github.com/aymerick/raymond/parser
Expand Down

0 comments on commit 9e0fc31

Please sign in to comment.