Re: [Cppcms-users] [template request] foreach reverse
Brought to you by:
artyom-beilis
From: Artyom B. <art...@ya...> - 2011-08-29 19:15:31
|
Done in trunk, together with closing: https://sourceforge.net/tracker/index.php?func=detail&aid=3111909&group_id=209965&atid=1011837 See: http://art-blog.no-ip.info/wikipp/en/page/cppcms_1x_templates_flow#Foreach.block Reverse iteration: <% foreach foo reverse in bar %> Row id support: <% foreach foo rowid id from 1 in bar %> So id would be a number of the item starting from 1. Artyom Beilis ----- Original Message ----- > From: Allan SIMON <all...@su...> > To: cpp...@li... > Cc: > Sent: Friday, August 26, 2011 4:13 PM > Subject: [Cppcms-users] [template request] foreach reverse > > Hi, > > A "simple" request, I would like to have the possibility to use > reverse > iterator inside template. > As for example on tatoeba I have a map of > <number_of_sentences,language>, and I want > to display the languages which the language with most sentences first. > > thanks, > > Allan > > > ------------------------------------------------------------------------------ > EMC VNX: the world's simplest storage, starting under $10K > The only unified storage solution that offers unified management > Up to 160% more powerful than alternatives and 25% more efficient. > Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |