Returns cached template for filename; creates and loads if not cached.
Always calls load on the template before returning, then clears
filled_user and
filled_system.
| filename |
template filename (e.g. task_refinement.md) |
|
the cached, reloaded template instance |
| GLib.Error |
when load fails |