EscapeTag

class
Superclass
Inversion::Template::AttrTag
Included Modules
Inversion::Escaping

Inversion escaping tag.

This tag is a derivative of the 'attr' tag that escapes the results of its method call via the format specified in the template config option 'escape_format'.

Syntax

<?escape foo.bar ?>
<?escape "Got <%d> items at <$%0.2f>" % [ line_item.count, line_item.price ] ?>

Public Instance Methods

anchor
render( render_state )

Render the method chains against the attributes of the specified render_state and return them.

# File lib/inversion/template/escapetag.rb, line 21
def render( render_state )
        return self.escape( super, render_state )
end