module Marten::Template::Object::Auto

Overview

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.

Included Modules

Direct including types

Defined in:

marten/template/object/auto.cr

Macros inherited from module Marten::Template::Object

template_attributes(*names) template_attributes