cmlenz@820: Version 0.6 cmlenz@820: http://svn.edgewall.org/repos/genshi/tags/0.6.0/ cmlenz@820: (???, from branches/stable/0.6.x) cmlenz@820: cmlenz@820: * Support for Python 2.3 has been dropped. cmlenz@820: cmlenz@820: cmlenz@820: Version 0.5.2 cmlenz@820: http://svn.edgewall.org/repos/genshi/tags/0.5.2/ cmlenz@820: (???, from branches/stable/0.5.x) cmlenz@820: cmlenz@820: * Fix problem with I18n filter that would get confused by expressions in cmlenz@820: attribute values when inside an `i18n:msg` block (ticket #250). cmlenz@820: * Fix problem with the transformation filter dropping events after the cmlenz@820: selection (ticket #290). cmlenz@820: * `for` loops in template code blocks no longer establish their own locals cmlenz@820: scope, meaning you can now access variables assigned in the loop outside cmlenz@820: of the loop, just as you can in regular Python code (ticket #259). cmlenz@820: * Import statements inside function definitions in template code blocks no cmlenz@820: longer result in an UndefinedError when the imported name is accessed cmlenz@820: (ticket #276). cmlenz@820: cmlenz@820: cmlenz@820: Version 0.5.1 cmlenz@820: http://svn.edgewall.org/repos/genshi/tags/0.5.1/ cmlenz@820: (Jul 9 2008, from branches/stable/0.5.x) cmlenz@820: cmlenz@820: * Fix problem with nested match templates not being applied when buffering cmlenz@820: on the outer `py:match` is disabled. Thanks to Erik Bray for reporting the cmlenz@820: problem and providing a test case! cmlenz@820: * Fix problem in `Translator` filter that would cause the translation of cmlenz@820: text nodes to fail if the translation function returned an object that was cmlenz@820: not directly a string, but rather something like an instance of the cmlenz@820: `LazyProxy` class in Babel (ticket #145). cmlenz@820: * Fix problem with match templates incorrectly being applied multiple times. cmlenz@820: * Includes from templates loaded via an absolute path now include the correct cmlenz@820: file in nested directories as long if no search path has been configured cmlenz@820: (ticket #240). cmlenz@820: * Unbuffered match templates could result in parts of the matched content cmlenz@820: being included in the output if the match template didn't actually consume cmlenz@820: it via one or more calls to the `select()` function (ticket #243). cmlenz@820: cmlenz@820: cmlenz@500: Version 0.5 cmlenz@500: http://svn.edgewall.org/repos/genshi/tags/0.5.0/ cmlenz@820: (Jun 9 2008, from branches/stable/0.5.x) cmlenz@500: cmlenz@500: * Added #include directive for text templates (ticket #115). cmlenz@820: * Added new markup transformation filter contributed by Alec Thomas. This cmlenz@820: provides gorgeous jQuery-inspired stream transformation capabilities based cmlenz@820: on XPath expressions. cmlenz@820: * When using HTML or XHTML serialization, the `xml:lang` attribute is cmlenz@820: automatically translated to the `lang` attribute which HTML user agents cmlenz@820: understand. cmlenz@820: * Added support for the XPath 2 `matches()` function in XPath expressions, cmlenz@820: which allow matching against regular expressions. cmlenz@820: * Support for Python code blocks in templates can now be disabled cmlenz@820: (ticket #123). cmlenz@820: * Includes are now processed when the template is parsed if possible, but cmlenz@820: only if the template loader is not set to do automatic reloading. Included cmlenz@820: templates are basically inlined into the including template, which can cmlenz@820: speed up rendering of that template a bit. cmlenz@820: * Added new syntax for text templates, which is more powerful and flexible cmlenz@820: with respect to white-space and line breaks. It also supports Python code cmlenz@820: blocks. The old syntax is still available and the default for now, but in a cmlenz@820: future release the new syntax will become the default, and some time after cmlenz@820: that the old syntax will be removed. cmlenz@820: * Added support for passing optimization hints to `` directives, cmlenz@820: which can speed up match templates in many cases, for example when a match cmlenz@820: template should only be applied once to a stream, or when it should not be cmlenz@820: applied recursively. cmlenz@820: * Text templates now default to rendering as plain text; it is no longer cmlenz@820: necessary to explicitly specify the "text" method to the `render()` or cmlenz@820: `serialize()` method of the generated markup stream. cmlenz@820: * XInclude elements in markup templates now support the `parse` attribute; cmlenz@820: when set to "xml" (the default), the include is processed as before, but cmlenz@820: when set to "text", the included template is parsed as a text template using cmlenz@820: the new syntax (ticket #101). cmlenz@820: * Python code blocks inside match templates are now executed (ticket #155). cmlenz@820: * The template engine plugin no longer adds the `default_doctype` when the cmlenz@820: `fragment` parameter is `True`. cmlenz@820: * The `striptags` function now also removes HTML/XML-style comments (ticket cmlenz@820: #150). cmlenz@820: * The `py:replace` directive can now also be used as an element, with an cmlenz@820: attribute named `value` (ticket #144). cmlenz@820: * The `TextSerializer` class no longer strips all markup in text by default, cmlenz@820: so that it is still possible to use the Genshi `escape` function even with cmlenz@820: text templates. The old behavior is available via the `strip_markup` option cmlenz@820: of the serializer (ticket #146). cmlenz@820: * Assigning to a variable named `data` in a Python code block no longer cmlenz@820: breaks context lookup. cmlenz@820: * The `Stream.render` now accepts an optional `out` parameter that can be cmlenz@820: used to pass in a writable file-like object to use for assembling the cmlenz@820: output, instead of building a big string and returning it. cmlenz@820: * The XHTML serializer now strips `xml:space` attributes as they are only cmlenz@820: allowed on very few tags. cmlenz@820: * Match templates are now applied in a more controlled fashion: in the order cmlenz@820: they are declared in the template source, all match templates up to (and cmlenz@820: including) the matching template itself are applied to the matched content, cmlenz@820: whereas the match templates declared after the matching template are only cmlenz@820: applied to the generated content (ticket #186). cmlenz@820: * The `TemplateLoader` class now provides an `_instantiate()` method that can cmlenz@820: be overridden by subclasses to implement advanced template instantiation cmlenz@820: logic (ticket #204). cmlenz@820: * The search path of the `TemplateLoader` class can now contain ''load cmlenz@820: functions'' in addition to path strings. A load function is passed the cmlenz@820: name of the requested template file, and should return a file-like object cmlenz@820: and some metadata. New load functions are supplied for loading from egg cmlenz@820: package data, and loading from different loaders depending on the path cmlenz@820: prefix of the requested filename (ticket #182). cmlenz@820: * Match templates can now be processed without keeping the complete matched cmlenz@820: content in memory, which could cause excessive memory use on long pages. cmlenz@820: The buffering can be disabled using the new `buffer` optimization hint on cmlenz@820: the `` directive. cmlenz@820: * Improve error reporting when accessing an attribute in a Python expression cmlenz@820: raises an `AttributeError` (ticket #191). cmlenz@820: * The `Markup` class now supports mappings for right hand of the `%` (modulo) cmlenz@820: operator in the same way the Python string classes do, except that the cmlenz@820: substituted values are escape. Also, the special constructor which took cmlenz@820: positional arguments that would be substituted was removed. Thus the cmlenz@820: `Markup` class now supports the same arguments as that of its `unicode` cmlenz@820: base class (ticket #211). cmlenz@820: * The `Template` class and its subclasses, as well as the interpolation API, cmlenz@820: now take an `filepath` parameter instead of `basedir` (ticket #207). cmlenz@820: * The `XHTMLSerializer` now has a `drop_xml_decl` option that defaults to cmlenz@820: `True`. Setting it to `False` will cause any XML decl in the serialized cmlenz@820: stream to be included in the output as it would for XML serialization. cmlenz@820: * Add support for a protocol that would allow interoperability of different cmlenz@820: Python packages that generate and/or consume markup, based on the special cmlenz@820: `__html__()` method (ticket #202). cmlenz@820: cmlenz@820: cmlenz@820: Version 0.4.4 cmlenz@820: http://svn.edgewall.org/repos/genshi/tags/0.4.4/ cmlenz@820: (Aug 14, 2007, from branches/stable/0.4.x) cmlenz@820: cmlenz@820: * Fixed augmented assignment to local variables in Python code blocks. cmlenz@820: * Fixed handling of nested function and class definitions in Python code cmlenz@820: blocks. cmlenz@820: * Includes were not raising `TemplateNotFound` exceptions even when no cmlenz@820: fallback has been specified. That has been corrected. cmlenz@820: * The template loader now raises a `TemplateNotFound` error when a previously cmlenz@820: cached template is removed or renamed, where it previously was passing up cmlenz@820: an `OSError`. cmlenz@820: * The Genshi I18n filter can be configured to only extract messages found in cmlenz@820: `gettext` function calls, ignoring any text nodes and attribute values cmlenz@820: (ticket #138). cmlenz@820: cmlenz@820: cmlenz@820: Version 0.4.3 cmlenz@820: http://svn.edgewall.org/repos/genshi/tags/0.4.3/ cmlenz@820: (Jul 17 2007, from branches/stable/0.4.x) cmlenz@820: cmlenz@820: * The I18n filter no longer extracts or translates literal strings in cmlenz@820: attribute values that also contain expressions. cmlenz@820: * Added `loader_callback` option to plugin interface, which allows specifying cmlenz@820: a callback function that the template loader should invoke whenever a new cmlenz@820: template is loaded (ticket #130). Note that the value for this option can cmlenz@820: not be specified as a string, only as an actual function object, which means cmlenz@820: it is not available for use through configuration files. cmlenz@820: * The I18n filter now extracts messages from gettext functions even inside cmlenz@820: ignored tags (ticket #132). cmlenz@820: * The HTML sanitizer now strips any CSS comments in style attributes, which cmlenz@820: could previously be used to hide malicious property values. cmlenz@820: * The HTML sanitizer now also removes any HTML comments encountered, as those cmlenz@820: may be used to hide malicious payloads targetting a certain "innovative" cmlenz@820: browser that goes and interprets the content of specially prepared comments. cmlenz@820: * Attribute access in template expressions no longer silently ignores cmlenz@820: exceptions other than `AttributeError` raised in the attribute accessor. cmlenz@500: cmlenz@500: cmlenz@500: Version 0.4.2 cmlenz@500: http://svn.edgewall.org/repos/genshi/tags/0.4.2/ cmlenz@820: (Jun 20 2007, from branches/stable/0.4.x) cmlenz@500: cmlenz@500: * The `doctype` parameter of the markup serializers now also accepts the "name" cmlenz@500: of the doctype as string, in addition to the `(name, pubid, sysid)` tuple. cmlenz@500: * The I18n filter was not replacing the original attributes with the cmlenz@500: translation, but instead adding a second attribute with the same name. cmlenz@820: * `TextTemplate` can now handle unicode source (ticket #125). cmlenz@820: * A `` processing instruction containing trailing whitespace no cmlenz@820: longer causes a syntax error (ticket #127). cmlenz@820: * The I18n filter now skips the content of elements that have an `xml:lang` cmlenz@820: attribute with a fixed string value. Basically, `xml:lang` can now be used cmlenz@820: as a flag to mark specific sections as not needing localization. cmlenz@820: * Added plugin for message extraction via Babel (http://babel.edgewall.org/). cmlenz@500: cmlenz@500: cmlenz@500: Version 0.4.1 cmlenz@500: http://svn.edgewall.org/repos/genshi/tags/0.4.1/ cmlenz@500: (May 21 2007, from branches/stable/0.4.x) cmlenz@500: cmlenz@500: * Fix incorrect reference to translation function in the I18N filter. cmlenz@500: * The `ET()` function now correctly handles attributes with a namespace. cmlenz@500: * XML declarations are now processed internally, as well as written to the cmlenz@500: output when XML serialization is used (ticket #111). cmlenz@500: * Added the functions `encode()` and `get_serializer()` to the `genshi.output` cmlenz@500: module, which provide a lower-level API to the functionality previously only cmlenz@500: available through `Stream.render()` and `Stream.serialize()`. cmlenz@500: * The `DocType` class now has a `get(name)` function that returns a `DOCTYPE` cmlenz@500: tuple for a given string. cmlenz@500: * Added frameset variants to the `DocType` constants for HTML 4.01 and XHTML cmlenz@500: 1.0. cmlenz@500: * Improved I18n extraction for pluralizable messages: for any translation cmlenz@500: function with multiple string arguments (such as ``ngettext``), a single cmlenz@500: item with a tuple of strings is yielded, instead an item for each string cmlenz@500: argument. cmlenz@500: * The `HTMLFormFiller` stream filter no longer alters form elements for which cmlenz@500: the data element contains no corresponding item. cmlenz@500: * Code in `` processing instructions no longer gets the special cmlenz@500: treatment as Python code in template expressions, i.e. item and attribute cmlenz@500: access are no longer interchangeable (which was broken in a number of ways cmlenz@500: anyway, see ticket #113). This change does not affect expressions. cmlenz@500: * Numerous fixes for the execution of Python code in `` processing cmlenz@500: instructions (tickets #113 and #114). cmlenz@500: * The `py:def` (and `#def`) directive now supports "star args" (i.e. `*args` cmlenz@500: and `**kwargs`) in the function declaration (ticket #116). cmlenz@500: cmlenz@500: cmlenz@276: Version 0.4 cmlenz@276: http://svn.edgewall.org/repos/genshi/tags/0.4.0/ cmlenz@500: (Apr 16 2007, from branches/stable/0.4.x) cmlenz@276: cmlenz@276: * New example applications for CherryPy and web.py. cmlenz@276: * The template loader now uses a LRU cache to limit the number of cached cmlenz@276: templates to a configurable maximum. Also, a race condition in the template cmlenz@276: loader was fixed by adding locking. cmlenz@276: * A new filter (genshi.filters.HTMLFormFiller) was added, which can populate cmlenz@276: HTML forms based on a dictionary of values. cmlenz@277: * The set of permitted tag and attribute names for the HTMLSanitizer can now cmlenz@277: be configured per instance. cmlenz@294: * The template engine plugin now supports a range of options for cmlenz@294: configuration, for example to set the default serialization method, the cmlenz@294: default output encoding, or the default DOCTYPE. cmlenz@302: * The ElementTree adaptation function `ET()` has moved into the `genshi.input` cmlenz@302: module. cmlenz@302: * Allow `when` directives to omit the test expression as long as the cmlenz@302: associated choose directive does have one. In that case, the when branch is cmlenz@302: followed if the expression of the choose directive evaluates to a truth cmlenz@302: value. cmlenz@317: * Unsuccessful attribute or item lookups now return `Undefined` objects for cmlenz@317: nicer error messages. cmlenz@336: * Split up the `genshi.template` module into multiple modules inside the new cmlenz@336: `genshi.template` package. cmlenz@344: * Results of expression evaluation are no longer implicitly called if they cmlenz@344: are callable. cmlenz@347: * Instances of the `genshi.core.Attrs` class are now immutable (they are cmlenz@347: subclasses of `tuple` instead of `list`). cmlenz@395: * `MarkupTemplate`s can now be instantiated from markup streams, in addition cmlenz@395: to strings and file-like objects (ticket #69). cmlenz@395: * Improve handling of incorrectly nested tags in the HTML parser. cmlenz@500: * Template includes can now be nested inside fallback content. cmlenz@500: * Expressions can now contain dict literals (ticket #37). cmlenz@500: * It is now possible to have one or more escaped dollar signs in front of a cmlenz@500: full expression (ticket #92). cmlenz@500: * The `Markup` class is now available by default in template expressions cmlenz@500: (ticket #67). cmlenz@500: * The handling of namespace declarations in XML/XHTML output has been improved. cmlenz@500: * The `Attrs` class no longer automatically wraps all attribute names in cmlenz@500: `QName` objects. This is now the responsibility of whoever is instantiating cmlenz@500: `Attrs` objects (for example, stream filters and generators). cmlenz@500: * Python code blocks are now supported using the `` processing cmlenz@500: instruction (ticket #84). cmlenz@500: * The way errors in template expressions are handled can now be configured. The cmlenz@500: option `LenientLookup` provides the same forgiving mode used in previous cmlenz@500: Genshi versions, while `StrictLookup` raises exceptions when undefined cmlenz@500: variables or members are accessed. The lenient mode is still the default in cmlenz@500: this version, but that may change in the future. (ticket #88) cmlenz@500: * If a variable is not necessarily defined at the top level of the template cmlenz@500: data, the new built-in functions `defined(key)` and `value_of(key, default)` cmlenz@500: can be used so that the template also works in strict lookup mode. These cmlenz@500: functions were previously only available when using Genshi via the template cmlenz@500: engine plugin (for compatibility with Kid). cmlenz@500: * `style` attributes are no longer allowed by the `HTMLSanitizer` by default. cmlenz@500: If they are explicitly added to the set of safe attributes, any unicode cmlenz@500: escapes in the attribute value are now handled properly. cmlenz@500: * Namespace declarations on conditional elements (for example using a `py:if` cmlenz@500: directive`) are no longer moved to the following element when the element cmlenz@500: originally carrying the declaration is removed from the stream (ticket #107). cmlenz@500: * Added basic built-in support for internationalizing templates by providing cmlenz@500: a new `Translator` class that can both extract localizable strings from a cmlenz@500: stream, and replace those strings with their localizations at render time. cmlenz@500: The code for this was largely taken from previous work done by Matt Good cmlenz@500: and David Fraser. cmlenz@395: cmlenz@395: cmlenz@395: Version 0.3.6 cmlenz@395: http://svn.edgewall.org/repos/genshi/tags/0.3.6/ cmlenz@395: (Dec 11 2006, from branches/stable/0.3.x) cmlenz@395: cmlenz@395: * The builder API now accepts streams as children of elements and fragments. cmlenz@395: cmlenz@395: cmlenz@395: Version 0.3.5 cmlenz@395: http://svn.edgewall.org/repos/genshi/tags/0.3.5/ cmlenz@395: (Nov 22 2006, from branches/stable/0.3.x) cmlenz@395: cmlenz@395: * Fix XPath traversal in match templates. Previously, `div/p` would be treated cmlenz@395: the same as `div//p`, i.e. it would match all descendants and not just the cmlenz@395: immediate children. cmlenz@395: * Preserve whitespace in HTML `
` elements also when they contain child
cmlenz@395:    elements.
cmlenz@395:  * Match templates no longer match their own output (ticket #77).
cmlenz@395:  * Blank lines before directives in text templates are now preserved as
cmlenz@395:    expected (ticket #62).
cmlenz@347: 
cmlenz@317: 
cmlenz@317: Version 0.3.4
cmlenz@317: http://svn.edgewall.org/repos/genshi/tags/0.3.4/
cmlenz@323: (Nov 2 2006, from branches/stable/0.3.x)
cmlenz@317: 
cmlenz@317:  * The encoding of HTML and XML files, as well as markup and text templates,
cmlenz@317:    can now be specified. Also, the encoding specified in XML declarations is
cmlenz@317:    now respected unless an expiclit encoding is requested.
cmlenz@317:  * Expressions used as arguments for `py:with`, `py:def`, and `py:for`
cmlenz@317:    directives can now contain non-ASCII strings.
cmlenz@285: 
cmlenz@285: 
cmlenz@288: Version 0.3.3
cmlenz@288: http://svn.edgewall.org/repos/genshi/tags/0.3.3/
cmlenz@302: (Oct 16 2006, from branches/stable/0.3.x)
cmlenz@288: 
cmlenz@288:  * Fixed bug introduced in 0.3.2 that broke the parsing of templates which
cmlenz@288:    declare the same namespace more than once in a nested fashion.
cmlenz@294:  * Fixed the parsing of HTML entity references inside attribute values, both
cmlenz@294:    in the `XMLParser` and the `HTMLParser` classes.
cmlenz@302:  * Some changes to usage of absolute vs. relative template paths to ensure that
cmlenz@302:    the filenamed-keyed cache employed by the TemplateLoader doesn't mix up
cmlenz@302:    templates with the same name, but from different subdirectories.
cmlenz@288: 
cmlenz@288: 
cmlenz@285: Version 0.3.2
cmlenz@285: http://svn.edgewall.org/repos/genshi/tags/0.3.2/
cmlenz@285: (Oct 12 2006, from branches/stable/0.3.x)
cmlenz@285: 
cmlenz@285:  * Exceptions from templates now contain the absolute path to the template file
cmlenz@285:    when a search path is used. This enables tracebacks to display the line in
cmlenz@285:    question.
cmlenz@285:  * The template engine plugin now provides three different types: "genshi" and
cmlenz@285:    "genshi-markup" map to markup templates, while "genshi-text" maps to text
cmlenz@285:    templates.
cmlenz@278:  * Fixed the namespace context used by XPath patterns in py:match templates.
cmlenz@278:    The were erroneously using the namespace context of the elements being
cmlenz@278:    matched, where they should rather use the context in which they were
cmlenz@278:    defined.
cmlenz@285:  * The contents of `