Re: [Cppcms-users] foreach
Brought to you by:
artyom-beilis
From: kpeo <sla...@ya...> - 2012-01-02 09:35:35
|
Hello, Template framework for foreach block has an iterators: <% foreach s rowid i in some %> See: http://cppcms.sourceforge.net/wikipp/en/page/cppcms_1x_templates_flow#Foreach.block 02.01.2012, 12:43, "Sergey" <dan...@gm...>: > data/ > std::vector<some_class *> some; > > apps/ > data::some_content c; > c.success.push_back(&some); > > tmpl/ > <% foreach s in some %> > <% item %><%= s.key() %><% end %> > <% end %> > > Of course i need like that <%= s[i].key() %> > Anyway it does not work > > Anybody have solution? > > ------------------------------------------------------------------------------ > Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex > infrastructure or vast IT resources to deliver seamless, secure access to > virtual desktops. With this all-in-one solution, easily deploy virtual > desktops for less than the cost of PCs and save 60% on VDI infrastructure > costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users |