| 1 | Version 0.7 |
|---|
| 2 | http://svn.edgewall.org/repos/genshi/tags/0.7.0/ |
|---|
| 3 | (Jan 27 2013, from branches/stable/0.7.x) |
|---|
| 4 | |
|---|
| 5 | * Add support for Python 3.1, 3.2 and 3.3 (via 2to3) and for PyPy. The |
|---|
| 6 | majority of the coding was done in a sprint run by the Cape Town Python |
|---|
| 7 | Users Group with financial assistance from the Python Software Foundation. |
|---|
| 8 | * Default input and output encodings changed from UTF-8 to None (i.e. unicode |
|---|
| 9 | strings). |
|---|
| 10 | * Skip Mako benchmarks if Mako isn't installed (rather than failing |
|---|
| 11 | completely). |
|---|
| 12 | |
|---|
| 13 | |
|---|
| 14 | Version 0.6.1 |
|---|
| 15 | http://svn.edgewall.org/repos/genshi/tags/0.6.1/ |
|---|
| 16 | (Jan 27 2013, from branches/stable/0.6.x) |
|---|
| 17 | |
|---|
| 18 | * Security fix to enhance sanitizing of CSS in style attributes. Genshi's |
|---|
| 19 | `HTMLSanitizer` disallows style attributes by default (this remains |
|---|
| 20 | unchanged) and warns against such attacks in its documentation, but |
|---|
| 21 | the provided CSS santizing is now less lacking (see #455). |
|---|
| 22 | * Fix for error in how `HTMLFormFiller` would handle `textarea` elements if |
|---|
| 23 | no value was not supplied form them. |
|---|
| 24 | * The `HTMLFormFiller` now correctly handles check boxes and radio buttons |
|---|
| 25 | with an empty `value` attribute. |
|---|
| 26 | * Template `Context` objects now have a `.copy` method. |
|---|
| 27 | * Added a simple `tox.ini` file for using tox to test against multiple |
|---|
| 28 | verions of Python. |
|---|
| 29 | * Fix for bug in `QName` comparison (see #413). |
|---|
| 30 | * Fix for bug in handling of trailing events in match template matches |
|---|
| 31 | (see #399). |
|---|
| 32 | * Fix i18n namespace declaration in documentation (see #400). |
|---|
| 33 | * Fix for bug in caching of events in serializers by no longer caching |
|---|
| 34 | `(TEXT, Markup)` events (see #429). |
|---|
| 35 | * Fix handling of `None` by `Markup.escape` in `_speedups.c` (see #439). |
|---|
| 36 | * Fix handling of internal state by match templates (relevant when multiple |
|---|
| 37 | templates match the same part of the stream, see #370). |
|---|
| 38 | * Fix handling of multiple events between or on either side of start and end |
|---|
| 39 | tags in translated messages (see #404). |
|---|
| 40 | * Fix test failures caused by changes in HTMLParser in Python 2.7 (see #501). |
|---|
| 41 | * Fix infinite loop in interplotation lexing that was introduced by a change |
|---|
| 42 | in Python 2.7's tokenizer (see #540). |
|---|
| 43 | * Fix handling of processing instructions without data (see #368). |
|---|
| 44 | * Updated MANIFEST.in so as not to rely on build from Subersion 1.6. |
|---|
| 45 | |
|---|
| 46 | |
|---|
| 47 | Version 0.6 |
|---|
| 48 | http://svn.edgewall.org/repos/genshi/tags/0.6.0/ |
|---|
| 49 | (Apr 22 2010, from branches/stable/0.6.x) |
|---|
| 50 | |
|---|
| 51 | * Support for Python 2.3 has been dropped. |
|---|
| 52 | * Rewrite of the XPath evaluation engine for better performance and improved |
|---|
| 53 | correctness. This is the result of integrating work done by Marcin Kurczych |
|---|
| 54 | during GSoC 2008. |
|---|
| 55 | * Updated the Python AST processing for template code evaluation to use the |
|---|
| 56 | `_ast` module instead of the deprecated `compiler` package, including an |
|---|
| 57 | adapter layer for Python 2.4. This, too, is the result of integrating work |
|---|
| 58 | done by Marcin Kurczych during GSoC 2008. |
|---|
| 59 | * Added caching in the serialization stage for improved performance in some |
|---|
| 60 | cases. |
|---|
| 61 | * Various improvements to the HTML sanitization filter. |
|---|
| 62 | * Fix problem with I18n filter that would get confused by expressions in |
|---|
| 63 | attribute values when inside an `i18n:msg` block (ticket #250). |
|---|
| 64 | * Fix problem with the transformation filter dropping events after the |
|---|
| 65 | selection (ticket #290). |
|---|
| 66 | * `for` loops in template code blocks no longer establish their own locals |
|---|
| 67 | scope, meaning you can now access variables assigned in the loop outside |
|---|
| 68 | of the loop, just as you can in regular Python code (ticket #259). |
|---|
| 69 | * Import statements inside function definitions in template code blocks no |
|---|
| 70 | longer result in an UndefinedError when the imported name is accessed |
|---|
| 71 | (ticket #276). |
|---|
| 72 | * Fixed handling of relative URLs with fragment identifiers containing colons |
|---|
| 73 | in the `HTMLSanitizer` (ticket #274). |
|---|
| 74 | * Added an option to the `HTMLFiller` to also populate password fields. |
|---|
| 75 | * Match template processing no longer produces unwanted duplicate output in |
|---|
| 76 | some cases (ticket #254). |
|---|
| 77 | * Templates instantiated without a loader now get an implicit loader based on |
|---|
| 78 | their file path, or the current directory as a fallback (ticket #320). |
|---|
| 79 | * Added documentation for the `TemplateLoader`. |
|---|
| 80 | * Enhanced documentation for internationalization. |
|---|
| 81 | |
|---|
| 82 | |
|---|
| 83 | Version 0.5.1 |
|---|
| 84 | http://svn.edgewall.org/repos/genshi/tags/0.5.1/ |
|---|
| 85 | (Jul 9 2008, from branches/stable/0.5.x) |
|---|
| 86 | |
|---|
| 87 | * Fix problem with nested match templates not being applied when buffering |
|---|
| 88 | on the outer `py:match` is disabled. Thanks to Erik Bray for reporting the |
|---|
| 89 | problem and providing a test case! |
|---|
| 90 | * Fix problem in `Translator` filter that would cause the translation of |
|---|
| 91 | text nodes to fail if the translation function returned an object that was |
|---|
| 92 | not directly a string, but rather something like an instance of the |
|---|
| 93 | `LazyProxy` class in Babel (ticket #145). |
|---|
| 94 | * Fix problem with match templates incorrectly being applied multiple times. |
|---|
| 95 | * Includes from templates loaded via an absolute path now include the correct |
|---|
| 96 | file in nested directories as long if no search path has been configured |
|---|
| 97 | (ticket #240). |
|---|
| 98 | * Unbuffered match templates could result in parts of the matched content |
|---|
| 99 | being included in the output if the match template didn't actually consume |
|---|
| 100 | it via one or more calls to the `select()` function (ticket #243). |
|---|
| 101 | |
|---|
| 102 | |
|---|
| 103 | Version 0.5 |
|---|
| 104 | http://svn.edgewall.org/repos/genshi/tags/0.5.0/ |
|---|
| 105 | (Jun 9 2008, from branches/stable/0.5.x) |
|---|
| 106 | |
|---|
| 107 | * Added #include directive for text templates (ticket #115). |
|---|
| 108 | * Added new markup transformation filter contributed by Alec Thomas. This |
|---|
| 109 | provides gorgeous jQuery-inspired stream transformation capabilities based |
|---|
| 110 | on XPath expressions. |
|---|
| 111 | * When using HTML or XHTML serialization, the `xml:lang` attribute is |
|---|
| 112 | automatically translated to the `lang` attribute which HTML user agents |
|---|
| 113 | understand. |
|---|
| 114 | * Added support for the XPath 2 `matches()` function in XPath expressions, |
|---|
| 115 | which allow matching against regular expressions. |
|---|
| 116 | * Support for Python code blocks in templates can now be disabled |
|---|
| 117 | (ticket #123). |
|---|
| 118 | * Includes are now processed when the template is parsed if possible, but |
|---|
| 119 | only if the template loader is not set to do automatic reloading. Included |
|---|
| 120 | templates are basically inlined into the including template, which can |
|---|
| 121 | speed up rendering of that template a bit. |
|---|
| 122 | * Added new syntax for text templates, which is more powerful and flexible |
|---|
| 123 | with respect to white-space and line breaks. It also supports Python code |
|---|
| 124 | blocks. The old syntax is still available and the default for now, but in a |
|---|
| 125 | future release the new syntax will become the default, and some time after |
|---|
| 126 | that the old syntax will be removed. |
|---|
| 127 | * Added support for passing optimization hints to `<py:match>` directives, |
|---|
| 128 | which can speed up match templates in many cases, for example when a match |
|---|
| 129 | template should only be applied once to a stream, or when it should not be |
|---|
| 130 | applied recursively. |
|---|
| 131 | * Text templates now default to rendering as plain text; it is no longer |
|---|
| 132 | necessary to explicitly specify the "text" method to the `render()` or |
|---|
| 133 | `serialize()` method of the generated markup stream. |
|---|
| 134 | * XInclude elements in markup templates now support the `parse` attribute; |
|---|
| 135 | when set to "xml" (the default), the include is processed as before, but |
|---|
| 136 | when set to "text", the included template is parsed as a text template using |
|---|
| 137 | the new syntax (ticket #101). |
|---|
| 138 | * Python code blocks inside match templates are now executed (ticket #155). |
|---|
| 139 | * The template engine plugin no longer adds the `default_doctype` when the |
|---|
| 140 | `fragment` parameter is `True`. |
|---|
| 141 | * The `striptags` function now also removes HTML/XML-style comments (ticket |
|---|
| 142 | #150). |
|---|
| 143 | * The `py:replace` directive can now also be used as an element, with an |
|---|
| 144 | attribute named `value` (ticket #144). |
|---|
| 145 | * The `TextSerializer` class no longer strips all markup in text by default, |
|---|
| 146 | so that it is still possible to use the Genshi `escape` function even with |
|---|
| 147 | text templates. The old behavior is available via the `strip_markup` option |
|---|
| 148 | of the serializer (ticket #146). |
|---|
| 149 | * Assigning to a variable named `data` in a Python code block no longer |
|---|
| 150 | breaks context lookup. |
|---|
| 151 | * The `Stream.render` now accepts an optional `out` parameter that can be |
|---|
| 152 | used to pass in a writable file-like object to use for assembling the |
|---|
| 153 | output, instead of building a big string and returning it. |
|---|
| 154 | * The XHTML serializer now strips `xml:space` attributes as they are only |
|---|
| 155 | allowed on very few tags. |
|---|
| 156 | * Match templates are now applied in a more controlled fashion: in the order |
|---|
| 157 | they are declared in the template source, all match templates up to (and |
|---|
| 158 | including) the matching template itself are applied to the matched content, |
|---|
| 159 | whereas the match templates declared after the matching template are only |
|---|
| 160 | applied to the generated content (ticket #186). |
|---|
| 161 | * The `TemplateLoader` class now provides an `_instantiate()` method that can |
|---|
| 162 | be overridden by subclasses to implement advanced template instantiation |
|---|
| 163 | logic (ticket #204). |
|---|
| 164 | * The search path of the `TemplateLoader` class can now contain ''load |
|---|
| 165 | functions'' in addition to path strings. A load function is passed the |
|---|
| 166 | name of the requested template file, and should return a file-like object |
|---|
| 167 | and some metadata. New load functions are supplied for loading from egg |
|---|
| 168 | package data, and loading from different loaders depending on the path |
|---|
| 169 | prefix of the requested filename (ticket #182). |
|---|
| 170 | * Match templates can now be processed without keeping the complete matched |
|---|
| 171 | content in memory, which could cause excessive memory use on long pages. |
|---|
| 172 | The buffering can be disabled using the new `buffer` optimization hint on |
|---|
| 173 | the `<py:match>` directive. |
|---|
| 174 | * Improve error reporting when accessing an attribute in a Python expression |
|---|
| 175 | raises an `AttributeError` (ticket #191). |
|---|
| 176 | * The `Markup` class now supports mappings for right hand of the `%` (modulo) |
|---|
| 177 | operator in the same way the Python string classes do, except that the |
|---|
| 178 | substituted values are escape. Also, the special constructor which took |
|---|
| 179 | positional arguments that would be substituted was removed. Thus the |
|---|
| 180 | `Markup` class now supports the same arguments as that of its `unicode` |
|---|
| 181 | base class (ticket #211). |
|---|
| 182 | * The `Template` class and its subclasses, as well as the interpolation API, |
|---|
| 183 | now take an `filepath` parameter instead of `basedir` (ticket #207). |
|---|
| 184 | * The `XHTMLSerializer` now has a `drop_xml_decl` option that defaults to |
|---|
| 185 | `True`. Setting it to `False` will cause any XML decl in the serialized |
|---|
| 186 | stream to be included in the output as it would for XML serialization. |
|---|
| 187 | * Add support for a protocol that would allow interoperability of different |
|---|
| 188 | Python packages that generate and/or consume markup, based on the special |
|---|
| 189 | `__html__()` method (ticket #202). |
|---|
| 190 | |
|---|
| 191 | |
|---|
| 192 | Version 0.4.4 |
|---|
| 193 | http://svn.edgewall.org/repos/genshi/tags/0.4.4/ |
|---|
| 194 | (Aug 14, 2007, from branches/stable/0.4.x) |
|---|
| 195 | |
|---|
| 196 | * Fixed augmented assignment to local variables in Python code blocks. |
|---|
| 197 | * Fixed handling of nested function and class definitions in Python code |
|---|
| 198 | blocks. |
|---|
| 199 | * Includes were not raising `TemplateNotFound` exceptions even when no |
|---|
| 200 | fallback has been specified. That has been corrected. |
|---|
| 201 | * The template loader now raises a `TemplateNotFound` error when a previously |
|---|
| 202 | cached template is removed or renamed, where it previously was passing up |
|---|
| 203 | an `OSError`. |
|---|
| 204 | * The Genshi I18n filter can be configured to only extract messages found in |
|---|
| 205 | `gettext` function calls, ignoring any text nodes and attribute values |
|---|
| 206 | (ticket #138). |
|---|
| 207 | |
|---|
| 208 | |
|---|
| 209 | Version 0.4.3 |
|---|
| 210 | http://svn.edgewall.org/repos/genshi/tags/0.4.3/ |
|---|
| 211 | (Jul 17 2007, from branches/stable/0.4.x) |
|---|
| 212 | |
|---|
| 213 | * The I18n filter no longer extracts or translates literal strings in |
|---|
| 214 | attribute values that also contain expressions. |
|---|
| 215 | * Added `loader_callback` option to plugin interface, which allows specifying |
|---|
| 216 | a callback function that the template loader should invoke whenever a new |
|---|
| 217 | template is loaded (ticket #130). Note that the value for this option can |
|---|
| 218 | not be specified as a string, only as an actual function object, which means |
|---|
| 219 | it is not available for use through configuration files. |
|---|
| 220 | * The I18n filter now extracts messages from gettext functions even inside |
|---|
| 221 | ignored tags (ticket #132). |
|---|
| 222 | * The HTML sanitizer now strips any CSS comments in style attributes, which |
|---|
| 223 | could previously be used to hide malicious property values. |
|---|
| 224 | * The HTML sanitizer now also removes any HTML comments encountered, as those |
|---|
| 225 | may be used to hide malicious payloads targetting a certain "innovative" |
|---|
| 226 | browser that goes and interprets the content of specially prepared comments. |
|---|
| 227 | * Attribute access in template expressions no longer silently ignores |
|---|
| 228 | exceptions other than `AttributeError` raised in the attribute accessor. |
|---|
| 229 | |
|---|
| 230 | |
|---|
| 231 | Version 0.4.2 |
|---|
| 232 | http://svn.edgewall.org/repos/genshi/tags/0.4.2/ |
|---|
| 233 | (Jun 20 2007, from branches/stable/0.4.x) |
|---|
| 234 | |
|---|
| 235 | * The `doctype` parameter of the markup serializers now also accepts the "name" |
|---|
| 236 | of the doctype as string, in addition to the `(name, pubid, sysid)` tuple. |
|---|
| 237 | * The I18n filter was not replacing the original attributes with the |
|---|
| 238 | translation, but instead adding a second attribute with the same name. |
|---|
| 239 | * `TextTemplate` can now handle unicode source (ticket #125). |
|---|
| 240 | * A `<?python ?>` processing instruction containing trailing whitespace no |
|---|
| 241 | longer causes a syntax error (ticket #127). |
|---|
| 242 | * The I18n filter now skips the content of elements that have an `xml:lang` |
|---|
| 243 | attribute with a fixed string value. Basically, `xml:lang` can now be used |
|---|
| 244 | as a flag to mark specific sections as not needing localization. |
|---|
| 245 | * Added plugin for message extraction via Babel (http://babel.edgewall.org/). |
|---|
| 246 | |
|---|
| 247 | |
|---|
| 248 | Version 0.4.1 |
|---|
| 249 | http://svn.edgewall.org/repos/genshi/tags/0.4.1/ |
|---|
| 250 | (May 21 2007, from branches/stable/0.4.x) |
|---|
| 251 | |
|---|
| 252 | * Fix incorrect reference to translation function in the I18N filter. |
|---|
| 253 | * The `ET()` function now correctly handles attributes with a namespace. |
|---|
| 254 | * XML declarations are now processed internally, as well as written to the |
|---|
| 255 | output when XML serialization is used (ticket #111). |
|---|
| 256 | * Added the functions `encode()` and `get_serializer()` to the `genshi.output` |
|---|
| 257 | module, which provide a lower-level API to the functionality previously only |
|---|
| 258 | available through `Stream.render()` and `Stream.serialize()`. |
|---|
| 259 | * The `DocType` class now has a `get(name)` function that returns a `DOCTYPE` |
|---|
| 260 | tuple for a given string. |
|---|
| 261 | * Added frameset variants to the `DocType` constants for HTML 4.01 and XHTML |
|---|
| 262 | 1.0. |
|---|
| 263 | * Improved I18n extraction for pluralizable messages: for any translation |
|---|
| 264 | function with multiple string arguments (such as ``ngettext``), a single |
|---|
| 265 | item with a tuple of strings is yielded, instead an item for each string |
|---|
| 266 | argument. |
|---|
| 267 | * The `HTMLFormFiller` stream filter no longer alters form elements for which |
|---|
| 268 | the data element contains no corresponding item. |
|---|
| 269 | * Code in `<?python ?>` processing instructions no longer gets the special |
|---|
| 270 | treatment as Python code in template expressions, i.e. item and attribute |
|---|
| 271 | access are no longer interchangeable (which was broken in a number of ways |
|---|
| 272 | anyway, see ticket #113). This change does not affect expressions. |
|---|
| 273 | * Numerous fixes for the execution of Python code in `<?python ?>` processing |
|---|
| 274 | instructions (tickets #113 and #114). |
|---|
| 275 | * The `py:def` (and `#def`) directive now supports "star args" (i.e. `*args` |
|---|
| 276 | and `**kwargs`) in the function declaration (ticket #116). |
|---|
| 277 | |
|---|
| 278 | |
|---|
| 279 | Version 0.4 |
|---|
| 280 | http://svn.edgewall.org/repos/genshi/tags/0.4.0/ |
|---|
| 281 | (Apr 16 2007, from branches/stable/0.4.x) |
|---|
| 282 | |
|---|
| 283 | * New example applications for CherryPy and web.py. |
|---|
| 284 | * The template loader now uses a LRU cache to limit the number of cached |
|---|
| 285 | templates to a configurable maximum. Also, a race condition in the template |
|---|
| 286 | loader was fixed by adding locking. |
|---|
| 287 | * A new filter (genshi.filters.HTMLFormFiller) was added, which can populate |
|---|
| 288 | HTML forms based on a dictionary of values. |
|---|
| 289 | * The set of permitted tag and attribute names for the HTMLSanitizer can now |
|---|
| 290 | be configured per instance. |
|---|
| 291 | * The template engine plugin now supports a range of options for |
|---|
| 292 | configuration, for example to set the default serialization method, the |
|---|
| 293 | default output encoding, or the default DOCTYPE. |
|---|
| 294 | * The ElementTree adaptation function `ET()` has moved into the `genshi.input` |
|---|
| 295 | module. |
|---|
| 296 | * Allow `when` directives to omit the test expression as long as the |
|---|
| 297 | associated choose directive does have one. In that case, the when branch is |
|---|
| 298 | followed if the expression of the choose directive evaluates to a truth |
|---|
| 299 | value. |
|---|
| 300 | * Unsuccessful attribute or item lookups now return `Undefined` objects for |
|---|
| 301 | nicer error messages. |
|---|
| 302 | * Split up the `genshi.template` module into multiple modules inside the new |
|---|
| 303 | `genshi.template` package. |
|---|
| 304 | * Results of expression evaluation are no longer implicitly called if they |
|---|
| 305 | are callable. |
|---|
| 306 | * Instances of the `genshi.core.Attrs` class are now immutable (they are |
|---|
| 307 | subclasses of `tuple` instead of `list`). |
|---|
| 308 | * `MarkupTemplate`s can now be instantiated from markup streams, in addition |
|---|
| 309 | to strings and file-like objects (ticket #69). |
|---|
| 310 | * Improve handling of incorrectly nested tags in the HTML parser. |
|---|
| 311 | * Template includes can now be nested inside fallback content. |
|---|
| 312 | * Expressions can now contain dict literals (ticket #37). |
|---|
| 313 | * It is now possible to have one or more escaped dollar signs in front of a |
|---|
| 314 | full expression (ticket #92). |
|---|
| 315 | * The `Markup` class is now available by default in template expressions |
|---|
| 316 | (ticket #67). |
|---|
| 317 | * The handling of namespace declarations in XML/XHTML output has been improved. |
|---|
| 318 | * The `Attrs` class no longer automatically wraps all attribute names in |
|---|
| 319 | `QName` objects. This is now the responsibility of whoever is instantiating |
|---|
| 320 | `Attrs` objects (for example, stream filters and generators). |
|---|
| 321 | * Python code blocks are now supported using the `<?python ?>` processing |
|---|
| 322 | instruction (ticket #84). |
|---|
| 323 | * The way errors in template expressions are handled can now be configured. The |
|---|
| 324 | option `LenientLookup` provides the same forgiving mode used in previous |
|---|
| 325 | Genshi versions, while `StrictLookup` raises exceptions when undefined |
|---|
| 326 | variables or members are accessed. The lenient mode is still the default in |
|---|
| 327 | this version, but that may change in the future. (ticket #88) |
|---|
| 328 | * If a variable is not necessarily defined at the top level of the template |
|---|
| 329 | data, the new built-in functions `defined(key)` and `value_of(key, default)` |
|---|
| 330 | can be used so that the template also works in strict lookup mode. These |
|---|
| 331 | functions were previously only available when using Genshi via the template |
|---|
| 332 | engine plugin (for compatibility with Kid). |
|---|
| 333 | * `style` attributes are no longer allowed by the `HTMLSanitizer` by default. |
|---|
| 334 | If they are explicitly added to the set of safe attributes, any unicode |
|---|
| 335 | escapes in the attribute value are now handled properly. |
|---|
| 336 | * Namespace declarations on conditional elements (for example using a `py:if` |
|---|
| 337 | directive`) are no longer moved to the following element when the element |
|---|
| 338 | originally carrying the declaration is removed from the stream (ticket #107). |
|---|
| 339 | * Added basic built-in support for internationalizing templates by providing |
|---|
| 340 | a new `Translator` class that can both extract localizable strings from a |
|---|
| 341 | stream, and replace those strings with their localizations at render time. |
|---|
| 342 | The code for this was largely taken from previous work done by Matt Good |
|---|
| 343 | and David Fraser. |
|---|
| 344 | |
|---|
| 345 | |
|---|
| 346 | Version 0.3.6 |
|---|
| 347 | http://svn.edgewall.org/repos/genshi/tags/0.3.6/ |
|---|
| 348 | (Dec 11 2006, from branches/stable/0.3.x) |
|---|
| 349 | |
|---|
| 350 | * The builder API now accepts streams as children of elements and fragments. |
|---|
| 351 | |
|---|
| 352 | |
|---|
| 353 | Version 0.3.5 |
|---|
| 354 | http://svn.edgewall.org/repos/genshi/tags/0.3.5/ |
|---|
| 355 | (Nov 22 2006, from branches/stable/0.3.x) |
|---|
| 356 | |
|---|
| 357 | * Fix XPath traversal in match templates. Previously, `div/p` would be treated |
|---|
| 358 | the same as `div//p`, i.e. it would match all descendants and not just the |
|---|
| 359 | immediate children. |
|---|
| 360 | * Preserve whitespace in HTML `<pre>` elements also when they contain child |
|---|
| 361 | elements. |
|---|
| 362 | * Match templates no longer match their own output (ticket #77). |
|---|
| 363 | * Blank lines before directives in text templates are now preserved as |
|---|
| 364 | expected (ticket #62). |
|---|
| 365 | |
|---|
| 366 | |
|---|
| 367 | Version 0.3.4 |
|---|
| 368 | http://svn.edgewall.org/repos/genshi/tags/0.3.4/ |
|---|
| 369 | (Nov 2 2006, from branches/stable/0.3.x) |
|---|
| 370 | |
|---|
| 371 | * The encoding of HTML and XML files, as well as markup and text templates, |
|---|
| 372 | can now be specified. Also, the encoding specified in XML declarations is |
|---|
| 373 | now respected unless an expiclit encoding is requested. |
|---|
| 374 | * Expressions used as arguments for `py:with`, `py:def`, and `py:for` |
|---|
| 375 | directives can now contain non-ASCII strings. |
|---|
| 376 | |
|---|
| 377 | |
|---|
| 378 | Version 0.3.3 |
|---|
| 379 | http://svn.edgewall.org/repos/genshi/tags/0.3.3/ |
|---|
| 380 | (Oct 16 2006, from branches/stable/0.3.x) |
|---|
| 381 | |
|---|
| 382 | * Fixed bug introduced in 0.3.2 that broke the parsing of templates which |
|---|
| 383 | declare the same namespace more than once in a nested fashion. |
|---|
| 384 | * Fixed the parsing of HTML entity references inside attribute values, both |
|---|
| 385 | in the `XMLParser` and the `HTMLParser` classes. |
|---|
| 386 | * Some changes to usage of absolute vs. relative template paths to ensure that |
|---|
| 387 | the filenamed-keyed cache employed by the TemplateLoader doesn't mix up |
|---|
| 388 | templates with the same name, but from different subdirectories. |
|---|
| 389 | |
|---|
| 390 | |
|---|
| 391 | Version 0.3.2 |
|---|
| 392 | http://svn.edgewall.org/repos/genshi/tags/0.3.2/ |
|---|
| 393 | (Oct 12 2006, from branches/stable/0.3.x) |
|---|
| 394 | |
|---|
| 395 | * Exceptions from templates now contain the absolute path to the template file |
|---|
| 396 | when a search path is used. This enables tracebacks to display the line in |
|---|
| 397 | question. |
|---|
| 398 | * The template engine plugin now provides three different types: "genshi" and |
|---|
| 399 | "genshi-markup" map to markup templates, while "genshi-text" maps to text |
|---|
| 400 | templates. |
|---|
| 401 | * Fixed the namespace context used by XPath patterns in py:match templates. |
|---|
| 402 | The were erroneously using the namespace context of the elements being |
|---|
| 403 | matched, where they should rather use the context in which they were |
|---|
| 404 | defined. |
|---|
| 405 | * The contents of `<script>` and `<style>` elements are no longer escaped when |
|---|
| 406 | serializing to HTML but declaring the XHTML namespace in the template. |
|---|
| 407 | * Improved error message raised when using the `py:for` directive on an object |
|---|
| 408 | that is not iterable (ticket #60). |
|---|
| 409 | * Fixed the XPath function `starts-with()` which was always returning true |
|---|
| 410 | (ticket #61). |
|---|
| 411 | |
|---|
| 412 | |
|---|
| 413 | Version 0.3.1 |
|---|
| 414 | http://svn.edgewall.org/repos/genshi/tags/0.3.1/ |
|---|
| 415 | (Sep 22 2006, from branches/stable/0.3.x) |
|---|
| 416 | |
|---|
| 417 | * Includes and user-defined filters were not getting the correct context data |
|---|
| 418 | when used inside a match template (ticket #56). |
|---|
| 419 | * XPath patterns using the union operator (`|`) were returning only partial |
|---|
| 420 | results in some cases. |
|---|
| 421 | |
|---|
| 422 | |
|---|
| 423 | Version 0.3 |
|---|
| 424 | http://svn.edgewall.org/repos/genshi/tags/0.3.0/ |
|---|
| 425 | (Sep 17 2006, from branches/stable/0.3.x) |
|---|
| 426 | |
|---|
| 427 | * The project name was changed from "Markup" to "Genshi". See UPGRADE.txt |
|---|
| 428 | for upgrade instructions. |
|---|
| 429 | * Expression evaluation now differentiates between undefined variables and |
|---|
| 430 | variables that are defined but set to `None`. This also means that local |
|---|
| 431 | variables can override built-ins even if the local variable are set to |
|---|
| 432 | `None` (ticket #36). |
|---|
| 433 | * The plugin implementation now makes more functions available for use inside |
|---|
| 434 | templates: XML(), HTML(), defined(), and value-of(). These are mostly for |
|---|
| 435 | migration from Kid. |
|---|
| 436 | * The parsing of `py:with` directives has been improved: you can now assign |
|---|
| 437 | to multiple names, and semicolons inside string literals are treated as |
|---|
| 438 | expected. |
|---|
| 439 | * Generator expressions can now be used in template expressions (ticket #16). |
|---|
| 440 | * Added serialization to plain text (ticket #41). |
|---|
| 441 | * Calling functions from template expressions with *args and/or **kwargs |
|---|
| 442 | now works correctly (ticket #42). |
|---|
| 443 | * The `TemplateLoader` class and the `Template` instances that it manages are |
|---|
| 444 | now thread-safe, as they no longer keep any state related to the current |
|---|
| 445 | processing context. |
|---|
| 446 | * Stream filters and serializers can now be applied using the "pipe" (bitwise |
|---|
| 447 | or) operator "|". |
|---|
| 448 | * The execution of named template functions (`py:def`) no longer silently |
|---|
| 449 | swallows TypeError exceptions (ticket #44). |
|---|
| 450 | * The XML Parser now correctly handles unicode input (ticket #43). |
|---|
| 451 | * HTML entities can now be used in templates without having to declare an HTML |
|---|
| 452 | document type. |
|---|
| 453 | * Error reporting on undefined entities has been fixed. |
|---|
| 454 | * Fix traversal of substreams by XPath expressions. For example, the path |
|---|
| 455 | '*/*' no longer matches non-immediate child elements, and '@*' no longer |
|---|
| 456 | matches the attributes of descendants. |
|---|
| 457 | * Fixes for `py:match` which would get confused when it should be applied |
|---|
| 458 | to multiple elements (ticket #49). |
|---|
| 459 | * Using namespace prefixes in XPath expressions is now supported. |
|---|
| 460 | * Expressions now correctly handle slices (ticket #51). |
|---|
| 461 | * A simple text-based template language is now included for generating |
|---|
| 462 | plain text output (ticket #47). |
|---|
| 463 | |
|---|
| 464 | |
|---|
| 465 | Version 0.2 |
|---|
| 466 | http://svn.edgewall.org/repos/genshi/tags/0.2.0/ |
|---|
| 467 | (Aug 22 2006, from branches/stable/0.2.x) |
|---|
| 468 | |
|---|
| 469 | * XPath syntax errors now contain position info (ticket #20). |
|---|
| 470 | * Errors in expression evaluation now contain the correct line number in the |
|---|
| 471 | template (ticket #22). |
|---|
| 472 | * <script> and <style> element contents are no longer escaped when using HTML |
|---|
| 473 | serialization (ticket #24). |
|---|
| 474 | * In some cases expressions in templates did not get interpolated (ticket |
|---|
| 475 | #26). |
|---|
| 476 | * CDATA sections are now passed through the pipeline and serialized correctly. |
|---|
| 477 | That allows using <script> or <style> elements in XHTML output that is still |
|---|
| 478 | compatible with HTML user agents. |
|---|
| 479 | * The XHTML serializer now correctly handles elements in foreign namespaces |
|---|
| 480 | (such as SVG or MathML). |
|---|
| 481 | * Fixed relative includes in templates on Windows (ticket #27). |
|---|
| 482 | * Output can be encoded using legacy codecs such as ISO-8859-1. Any character |
|---|
| 483 | not representable in the chosen encoding gets replaced by the corresponding |
|---|
| 484 | XML character reference. |
|---|
| 485 | * String literals in XPath expressions that contain spaces are now parsed |
|---|
| 486 | as expected. |
|---|
| 487 | * Added support for the XPath functions boolean(), ceiling(), concat(), |
|---|
| 488 | contains(), false(), floor(), normalize-space(), number(), round(), |
|---|
| 489 | starts-with(), string-length(), substring(), substring-after(), |
|---|
| 490 | substring-before(), translate(), and true(). |
|---|
| 491 | * Non-ASCII characters in expressions should now be handled correctly (ticket |
|---|
| 492 | #29). |
|---|
| 493 | * Default values for arguments of template functions now also work with |
|---|
| 494 | constants and complex expressions (they only worked for string or number |
|---|
| 495 | literals before). |
|---|
| 496 | * XPath expressions in now support XPath variables ($var) in predicates |
|---|
| 497 | (ticket #31). |
|---|
| 498 | * Expressions in templates can now span multiple lines if they are enclosed |
|---|
| 499 | in curly braces. |
|---|
| 500 | * py:def macros can now be invoked from within expressions inside attribute |
|---|
| 501 | values (ticket #34). |
|---|
| 502 | |
|---|
| 503 | |
|---|
| 504 | Version 0.1 |
|---|
| 505 | http://svn.edgewall.org/repos/genshi/tags/0.1.0/ |
|---|
| 506 | (Aug 3 2006, from branches/stable/0.1.x) |
|---|
| 507 | |
|---|
| 508 | * First public release |
|---|