Skip to content
This repository has been archived by the owner on Nov 16, 2020. It is now read-only.

Commit

Permalink
Merge pull request #41 from sroebert/master
Browse files Browse the repository at this point in the history
Fixed userInfo not passed when embedding templates
  • Loading branch information
tanner0101 authored Nov 6, 2018
2 parents ce1d781 + 1cbf921 commit aff2d6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/TemplateKit/Pipeline/TemplateSerializer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ public final class TemplateSerializer {
)
}

return self.renderer.render(path, self.context.data)
return self.renderer.render(path, self.context.data, userInfo: self.context.userInfo)
.map(to: TemplateData.self) { .data($0.data) }
}
}
Expand Down

0 comments on commit aff2d6f

Please sign in to comment.