comparison doc/xml-templates.txt @ 284:65a46e008098 stable-0.3.x

Ported [338], [343] and [345:349/trunk] to 0.3.x stable branch.
author cmlenz
date Thu, 12 Oct 2006 12:40:43 +0000
parents fa07ab5a7e53
children 6951db75824e
comparison
equal deleted inserted replaced
272:186d18554183 284:65a46e008098
563 the including template after the point it was included. 563 the including template after the point it was included.
564 564
565 By default, an error will be raised if an included file is not found. If that's 565 By default, an error will be raised if an included file is not found. If that's
566 not what you want, you can specify fallback content that should be used if the 566 not what you want, you can specify fallback content that should be used if the
567 include fails. For example, to to make the include above fail silently, you'd 567 include fails. For example, to to make the include above fail silently, you'd
568 write: 568 write::
569 569
570 <xi:include href="base.html"><xi:fallback /></xi:include> 570 <xi:include href="base.html"><xi:fallback /></xi:include>
571 571
572 See the XInclude_ for more about fallback content. Note though that Genshi 572 See the `XInclude specification`_ for more about fallback content. Note though
573 currently only supports a small subset of XInclude. 573 that Genshi currently only supports a small subset of XInclude.
574
575 .. _`xinclude specification`: http://www.w3.org/TR/xinclude/
574 576
575 Incudes in Genshi are fully dynamic: Just like normal attributes, the `href` 577 Incudes in Genshi are fully dynamic: Just like normal attributes, the `href`
576 attribute accepts expressions_, and directives_ can be used on the 578 attribute accepts expressions_, and directives_ can be used on the
577 ``<xi:include />`` element just as on any other element, meaning you can do 579 ``<xi:include />`` element just as on any other element, meaning you can do
578 things like conditional includes:: 580 things like conditional includes::
Copyright (C) 2012-2017 Edgewall Software