I want to create a Template object using a string (something like "<h1>Hello {{ username }}</h1>") and then manually call that object's render() function. The examples in the docs all use renderString() which returns the results after calling render().
I want to create a
Template
object using a string (something like"<h1>Hello {{ username }}</h1>"
) and then manually call that object'srender()
function. The examples in the docs all userenderString()
which returns the results after callingrender()
.Is there a way to do this? Thanks for any help.