I'd like to generate the data for a CSV file (or any reasonable export format) using template-like syntax for accessing the fields of my django objects. For example, the spec for the output fields could be:

```
employee.id
employee.manager.first_name
employee.user.last_login
employee.contact.phone_number

```

Where the fields are specified using the same syntax as I'd use in a Django or Jinja2 template.

I'd also love to be able to use filters just as I do in a django/jinja template:

```
employee.user.last_login|date:"c"

```

Given this spec and a list of objects, I'd like to produce rows of data from my objects. I can then generate CSV, XML, etc, from this data.

I started to write something that does this, but it quickly gets complex, and I'm thinking I can probably use some existing piece of the Django/Jinja2 templating engine.

Is there something that allows me to access my objects via Django/Jinja2 syntax?