Inversion URL encoding tag.
This tag is a derivative of the ‘attr’ tag that encodes the results of its method call according to RFC 3986.
<?uriencode foo.bar ?>
Unreserved characters from section 2.3 of RFC 3986 ALPHA / DIGIT / “-” / “.” / “_” / “~”
Render the method chains against the attributes of the specified
render_state and return them.
# File lib/inversion/template/uriencodetag.rb, line 24
def render( render_state )
raw = super
return URI.encode( raw.to_s, DEFAULT_ENCODED_CHARACTERS )
end