Skip to content

Commit

Permalink
Merge pull request kataras#765 from balthild/master
Browse files Browse the repository at this point in the history
Get pongo2's origin data type

Former-commit-id: b841ff867d208cdcfdfaf6d9b99d88b0383f832b
  • Loading branch information
kataras committed Sep 24, 2017
2 parents ab8235d + 8c974bf commit c311e1e
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions view/django.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,22 @@ type (
TagParser func(doc *Parser, start *Token, arguments *Parser) (INodeTag, *Error)
)

func (value *Value) GetValue() *pongo2.Value {
return (*pongo2.Value)(value)
}

func (error *Error) GetError() *pongo2.Error {
return (*pongo2.Error)(error)
}

func (parser *Parser) GetParser() *pongo2.Parser {
return (*pongo2.Parser)(parser)
}

func (token *Token) GetToken() *pongo2.Token {
return (*pongo2.Token)(token)
}

type tDjangoAssetLoader struct {
baseDir string
assetGet func(name string) ([]byte, error)
Expand Down

0 comments on commit c311e1e

Please sign in to comment.