module

Marten::Template::Object::Auto

Inherits Marten::Template::Object < Marten::Template::CanDefineTemplateAttributes

Allows to add support for custom classes to template contexts and automatically generate template attributes.

Including this module in a class will make it "compatible" with the template engine so that instances of this class can be included in context objects. The module will automatically ensure that every "attribute-like" method can be accessed in templates when performing variable lookups.