WLJS LogoWLJS Notebook

TemplateWith

TemplateWith["name" -> value, expr] represents an element of a template object that evaluates expr after replacing TemplateSlot["name"] with value.

  • TemplateWith[{name1 -> value1, name2 -> value2, ...}, expr] evaluates expr with a list of key-value pairs.

Examples

TemplateApply[TemplateWith["x" -> 5, TemplateSlot["x"]^2]]

Please visit the official Wolfram Language Reference for more details.

On this page