[viewvc-dev] Re: Porting templates to viewvc 1.1
Jens Peters <[email protected]> Mon, 21 Jul 2008 20:43:02 +0200
| Newsgroups | gmane.comp.version-control.cvs.viewcvs.devel |
|---|---|
| Message-ID | <g62lbm$7ls$1__23671.6146035635$1216665861$gmane$org@ger.gmane.org> |
C. Michael Pilato wrote: > Templates should ideally work regardless of the ViewVC configuration, > don't you think? I mean, I would be rather disappointed in a template > set that only worked if viewvc.conf was composed a particular way. So, > templates need to do things conditionally, and the mechanism for doing > so is the likes of [if-any download_href]. But [if-any download_href] > will raise an exception if download_href isn't even defined, and those > kinds of annoyances were driving me batty as a template author. This is > why ViewVC 1.1 tries to keep a more-or-less uniform set of dictionary > variables at least defined, even if unused. I do fully agree. Initially I thought more in the line of [if options.allow_co] [download_href] [end]. But testing with [if-any ..] is absolutely perfect. (Actually it is time for me, or must find the time to get the python basics in my head, never thought of using if-any :( ) > Ah, okay. Yes, I've seen certain situations in the past where > mod_deflate, doin' its thang on a already-gzipped data stream, can go > awry. Unfortunately, I know neither the cause nor the graceful > workaround for such situations. Ok, so at least I know that this phenomena isn't related to my build. Thanks for sharing your knowledge! --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]