doc: Document the implicit variables which are always available in a
template

Fixes #541