On Jan 22, 11:39 pm, Remy Blank <remy.bl...@pobox.com> wrote: > Carsten Fuchs wrote: > > Could someone give me a hint please? > > Here's a complete site.html that should get you started: > > <html xmlns="http://www.w3.org/1999/xhtml" > xmlns:py="http://genshi.edgewall.org/" > py:strip=""> > <py:match path="fo...@id='attachment']/d...@class='buttons']" > once="true"> > <p>By submitting a file here, you accept blah blah...</p> > <div py:attrs="select('@*')"> > ${select('*|comment()|text()')} > </div> > </py:match> > </html> > > The idea is that <py:match> matches a part of the document that is > unique to that page. The content of the element replaces the matched > element. The <p> adds the license paragraph. Finally, the matched > element is re-constructed. > > Ok, the explanation probably doesn't help much :) > > -- Remy
Nice Remy, A superb example for a small snippet to add to the CookBook page I created the other day when helping someone else with a small site.html tweak: http://trac.edgewall.org/wiki/CookBook/SiteHtml :::simon https://www.coderesort.com http://www.ohloh.net/accounts/osimons -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to trac-us...@googlegroups.com. To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.