Allow Template.render() to be called multiple times

Allow Template.render() to be called multiple times, for the use case where a single template is rendered against multiple Contexts.
This commit is contained in:
Andy Choi
2015-09-30 20:56:54 -07:00
parent 2ab9b85305
commit b03ec50a42
2 changed files with 8 additions and 2 deletions

View File

@@ -168,6 +168,8 @@ of template tags. You will need to call the `registerTag` API which accepts a
closure to handle the parsing. You can find examples of the `now`, `if` and
`for` tags found inside `Node.swift`.
Custom template tags must be registered prior to calling `Template.render` the first time.
The architecture of Stencil along with how to build advanced plugins can be found in the [architecture](ARCHITECTURE.md) document.
### Comments