Cache rendered blocks content to reuse them in further calls
This commit is contained in:
committed by
David Jennes
parent
4d3f911f5d
commit
8c379296ca
@@ -151,6 +151,8 @@ class BlockNode: NodeType {
|
||||
}
|
||||
}
|
||||
|
||||
return try renderNodes(nodes, context)
|
||||
let result = try renderNodes(nodes, context)
|
||||
context.cacheBlock(name, content: result)
|
||||
return result
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user