Re: Smarty like .index .iteration .first .last .total in #for #repeat and #while
"R. Tyler Ballance" <[email protected]>
| Newsgroups | gmane.comp.python.cheetah |
|---|---|
| Message-ID | <[email protected]> |
On Tue, Jun 02, 2009 at 07:44:17AM +0200, Malix wrote: > Does Cheetah has internal counter like those present in Smarty? They are > very useful when you need to print a line number or made logic on that. I > know that I can use a #set $counter, but internal variable are cool. Short answer, no. #for and #while map directly to their Python equivalents. Long answer, noooooooooo ;) WHy doy ou need them? -- -R. Tyler Ballance Slide, Inc. ------------------------------------------------------------------------------ OpenSolaris 2009.06 is a cutting edge operating system for enterprises looking to deploy the next generation of Solaris that includes the latest innovations from Sun and the OpenSource community. Download a copy and enjoy capabilities such as Networking, Storage and Virtualization. Go to: http://p.sf.net/sfu/opensolaris-get _______________________________________________ Cheetahtemplate-discuss mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/cheetahtemplate-discuss
signature.asc
(application/pgp-signature, 197 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkolXGYACgkQFCbH3D9R4W9z2QCfZpdEB6F1mJsTqepinho2zYTX kH8AoJG68AjKT9W4+4kgTic0Ls3QjnKp =dz+O -----END PGP SIGNATURE-----