5007

String, File, HTML Templating

String, File, HTML Templating in Mathematica 10

Mathematica Version 10 introduces a compact syntax for embedding templates inside strings and files, as well as a more elaborate and powerful XML-based syntax that integrates directly into existing XML and HTML documents. The new TextString function makes it easier to convert arbitrary data into text. With support for nesting and conditional evaluation, data can be formatted and inserted into templates from arbitrary hierarchies of lists and associations, making it feasible to build templates incorporating complex data models. Notebook templating makes it easy to interactively create templates that can then be filled programmatically, enabling the automation of many kinds of reporting and analysis.

  • Generate text from a file or string.
  • Use file templates.
  • Generate HTML from an XML template.
  • Generate a notebook from a notebook template.
  • Store templates in the Wolfram Cloud Platform and load them across your different applications.

Generate Text from Templates »

Store Templates in Files »

Use Templates in the Cloud »

Generate XML from a Template »

Generate a Notebook from a Template »