Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
kataras committed Feb 15, 2020
1 parent 9bf39b9 commit e7b54b7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jade_parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,8 @@ func (t *Tree) parseInclude(tk item) *ListNode {

func (t *Tree) parseSubFile(path string) *ListNode {
// log.Println("subtemplate: " + path)
var incTree = New(path)
currentTmplDir, _ := filepath.Split(t.Name)
var incTree = New(currentTmplDir + path)
incTree.block = t.block
incTree.mixin = t.mixin

Expand Down

0 comments on commit e7b54b7

Please sign in to comment.