Built in template functions =========================== defined(key) ------------------------ Return ``True`` if a variable named ``key`` is defined, else ``False``. .. code:: html

$message

value_of(key, [default]) ------------------------ Return the value of the variable named ``key`` if it exists, else ``default``. .. code:: html
today it is ${value_of('weather', 'sunny')}
today it is ${value_of('weather', 'sunny')}
super() ---------- Render the parent block when using template inheritance. This function is only available inside Piglet :ref:`py-block` directives. Example: .. code:: html

Eat more biscuits

.. code:: html

Drink more tea

${super()}

This would produce the following output: .. code:: html

Drink more tea

Eat more biscuits