template
Last updated
Lightweight
{{ }}templating with HTML escaping
Use template to render small text or HTML templates with data maps.
import "osl/template"import "osl/template"
log template.render("Hello {{name}}", {name: "Ada"})templatetemplate.render(tmpl: any, data: object)
string
Runs the render operation.
template.renderHTML(tmpl: any, data: object)
string
Runs the render html operation.
Standard-library imports accept both import "osl/template" and import "template".
Return values such as array and object are regular OSL values unless a returned object section says otherwise.
Last updated