Ok. I see that the latest version of H:T 2.7
references the loop context vars as all lower case,
which is on point. It's the documentation on
sourceforge, which google lists first for
HTML::Template :-), that is misleading - I guess
sourceforge will catch up to the recent documentation
or fade away... Anyway, I did happen to find an error
in the documentation while copying and pasting code.
Under loop_context_vars section, there's a closing
TMPL_IF that is missing the slash. Here's a patch for
the 2.7 docs (I'm not sure if this is the place to
post such patches):

@@ -762,7 +762,7 @@ Example:

       <TMPL_IF NAME="__last__">
         This only outputs on the last pass.
-      <TMPL_IF>
+      </TMPL_IF>
    </TMPL_LOOP>

BTW, I've been using H:T for a number of years. It's
perfect. Thanks.

Paul



--- Sam Tregar <[EMAIL PROTECTED]> wrote:

> On Wed, 1 Jun 2005, Paul Simon wrote:
> 
> > The HTML::Template doc says to use __FIRST__,
> > __LAST__, __INNER__, __ODD__ as the loop context
> vars.
> > They did not work for me until I used the
> > (undocumented) lower case  __first__, __last__
> etc.
> > I'm guessing because I have case_sensitive set to
> true
> > that this may have affected things?
> 
> Yup, there should be something in the docs to
> explain what case
> they'll be when case_sensitive is in effect.
> 
> > What can I do to fix this?
> 
> Patches welcome.
> 
> -sam


-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
Html-template-users mailing list
Html-template-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/html-template-users

Reply via email to