liveBook · Manning

Templating language

Also called template language

A templating language combines a predefined template with supplied data or values to generate text or other output.

How 3 Manning books explain it

Django in Action

A template language is a language embedded in templates for replacing values, accessing data, and controlling rendered output.

How it is used
Generates HTML or other text by combining template text with data supplied to Django’s template engine.
How deep it goes
Explains variable lookup, dot notation, tags, filters, and direct Template.render() use, while deferring detailed tag coverage.
Examples
Demonstrates a rendered greeting, lorem ipsum tags, conditional output, and song rows generated in an HTML table.
What you can do after
Apply it via Django Template and Context objects to render data-driven text and control displayed content with tags and filters.

Read how Django in Action explains templating language →

Data Pipelines with Apache Airflow, Second Edition

Templating is the technique of generating a command or other text by substituting runtime values into a predefined template.

How it is used
Parameterizes Airflow tasks with runtime dates and paths so scheduled workflows can process the appropriate interval.
How deep it goes
Explains Jinja interpolation, zero-padding, operator argument allowlists, and PythonOperator’s distinct callable convention through worked pipeline examples.
Examples
Uses an hourly Wikipedia page-view URL and daily, date-partitioned ratings and rankings files.
What you can do after
Apply it via Jinja-enabled operator arguments or PythonOperator templates_dict, then inspect rendered arguments with airflow tasks render.

Read how Data Pipelines with Apache Airflow, Second Edition explains templating language →

The Well-Grounded Python Developer: How the pros use Python and Flask

A template language is a language for combining a document template with data to produce a completed output document.

How it is used
Combines dynamic application data with HTML before delivering a completed document to the browser.
How deep it goes
Defines placeholders, separate template files, and value substitution through a worked Flask example.
Examples
Uses a Python f-string, a Flask route, an index.html template, and a current-time heading.
What you can do after
Apply it via Flask and Jinja2 to render dynamic values inside browser-delivered HTML.

Read how The Well-Grounded Python Developer: How the pros use Python and Flask explains templating language →

Also covered in

What to know first

Related concepts

Questions about templating language

What is templating language?

A templating language combines a predefined template with supplied data or values to generate text or other output.

Which Manning books explain templating language?

Django in Action, Data Pipelines with Apache Airflow, Second Edition and The Well-Grounded Python Developer: How the pros use Python and Flask.

What should I know before learning templating language?

Manning books that teach templating language usually introduce HTML, server, callable and f-string first.

What kinds of templating language are there?

Kinds of templating language include Jinja and JSX.

What is templating language also called?

Templating language is also called template language.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.