this patch implements the `memoize` alternative over the __html__ method. alex#32