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