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
- Marten::Core::Validation::Error
- Marten::DB::Model
- Marten::Emailing::Address
- Marten::Emailing::Email
- Marten::HTTP::Request
- Marten::Schema::Field::Base
- Marten::Template::Tag::For::Loop