Best practices for export templates
Here are a few brief best practices for export templates:
- Store them in version control so that you aren’t managing Jinja templates in the Nautobot UI. This will be covered in the Git as a data source section.
- Use the
get_config_context()
method to get data from the config contexts of devices. - Generally, require looping on the queryset to produce a reasonable report.
- Remove complex logic from the template and add it to a custom Jinja template filter.