Inversion::Template::

EscapeTag class

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

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