If you encode an iterable object it grabs the appropriate encoder for each element as opposed to donking off to the DefaultEncoder.
Also, it allows you to pass in an htmlescape argument to the encode method. This makes it so you can register an ExcludeEncoder for a User object but only escape arguments when you need them to be, like in a template tag.
This does two things:
If you encode an iterable object it grabs the appropriate encoder for each element as opposed to donking off to the DefaultEncoder.
Also, it allows you to pass in an htmlescape argument to the encode method. This makes it so you can register an ExcludeEncoder for a User object but only escape arguments when you need them to be, like in a template tag.