All metrics calculations and executed SQL queries will be passed through the Jinja2 engine, so any basic Jinja2 templating, as you might expect, is supported. If you're not familiar with Jinja2, a basic example is shown below.
{% set table = census.public_data %}
select count(*) from {{ table }}
Reusable templates
On top of this, we provide support for reusable templates, which should be saved in the ~/.whale/templates folder and named after the name of the warehouse connection that you would like to use this template for. Connection names can be found by running wh connections, in the name field of each yaml block.