Templess history ================ 0.4 (unreleased) ---------------- * added 'html' argument to rendering methods, which can be used to make sure certain elements are not rendered as a singleton 0.3 (released 2007/12/15) ------------------------- features ++++++++ * distutils support (thanks lennart!) * if a value is an actual emptry string in an attr statement, the attribute will now be rendered empty rather than removed * made that the templess namespace is removed from a converted document * added support for 'apigen', a documentation generation tool integrated into py.test * small optimization: replace string interpolation with concatenation (thanks fijal!) bugfixes ++++++++ * fixed attribute lookup bug (wasn't searching class dict) in objectcontext * fixed generate() method (missing context arg) 0.2 (released 2006/10/06) ------------------------- features ++++++++ * removed lxml dependency in favour of our own sax(-like) parser (see 'nanosax.py'), which as side-effect removed all tail-related bugs * along with the sax parser, there's a more complex tree structure built, with specific templess nodes and non-templess (converted or non-node type) ones * module is now a package (so it is assumed the whole package is added to the PYTHONPATH rather than just templess.py) * allowing other types of iterable (besides lists) for content and repeat * changed namespace, removed version from namespace (thanks oefe for the tip!) * added 'not' directive * added 'xmlstring' wrapper for strings, if wrapped a string doesn't get entitized * changed the public methods to call for generation, there's now a method called 'unicode' to convert to a unicode string, one called 'generate' that returns a generator (yielding strings) and one called 'render' that returns a converted node (render_to_string is deprecated) * when a value resolves to False inside an attr statement, the attribute is removed * added 'objectcontext', a generic object wrapper to allow using an object tree instead of a dict as context - if __getitem__ on the object fails, __getattr__ is tried, also if the value is a callable, it is called (without arguments) bugfixes ++++++++ * proper encoding support * some namespace fixes * fixed ordering issue in repeat 0.1 (released 2005/09/05) ------------------------- First version.