Exporting variables from templates.