From 1dcb73e1a06d3a558b498ec5d5a47ff562254b7d Mon Sep 17 00:00:00 2001 From: Sol Jerome Date: Sat, 26 Feb 2011 13:27:35 -0600 Subject: Bundler: Add support for genshi .xml bundles This commit modifies the Bundler plugin to allow for genshi templates with .xml file extensions via the xml namespace (Resolves ticket #861). Signed-off-by: Sol Jerome --- doc/server/plugins/structures/bundler/index.txt | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'doc') diff --git a/doc/server/plugins/structures/bundler/index.txt b/doc/server/plugins/structures/bundler/index.txt index e5682ac00..0d0054a2c 100644 --- a/doc/server/plugins/structures/bundler/index.txt +++ b/doc/server/plugins/structures/bundler/index.txt @@ -105,13 +105,16 @@ how group entries can be used in bundles) Genshi templates ================ -Genshi templates are used by adding a Genshi xml-style template to the -Bundler directory with a ``.genshi`` file extension. Version 0.4 or newer -of genshi is required. +Genshi xml templates can be specified one of two ways: -.. important:: The ``.genshi`` file extension is required in order for the - server to know that the Bundle should be rendered using - Genshi. +1. Add an xml-style genshi template to the Bundler directory with a + ``.genshi`` and the associated namespace attribute. +2. Simply add the appropriate namespace attribute to your existing xml + bundle. + +The namespace attribute in this case should look like the following:: + + xmlns:py="http://genshi.edgewall.org/" Motivation ---------- -- cgit v1.2.3-1-g7c22