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.

Details

Examples

Basic Examples  (1)

Using TemplateSlot:

Binding multiple variables:

Hold evaluation with TemplateExpression:

Use TemplateWith to transform TemplateSlot data:

Introduced in 2014
 (10.0)