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

Commit

Permalink
Fixed userInfo not passed when embedding templates
Browse files Browse the repository at this point in the history
  • Loading branch information
sroebert committed Nov 6, 2018
1 parent ce1d781 commit 1cbf921
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 1cbf921

Please sign in to comment.