Allows accessing model attributes from templates.