Re: [Cppcms-users] template-based widget rendering - Re: Custom form rendering and dynamic widgets
Brought to you by:
artyom-beilis
From: Artyom <art...@ya...> - 2010-08-31 06:23:13
|
> Hello, > > On the topic of widget rendering, I think the rendering of each type of widget > > should be template-based. > Currently, the default form rendering is hard-coded. > The hard coded options are only for some basic cases, for custom template rendering you can create your own template easily <% template my_form_render(cppcms::form &f) %> <% foreach w in f %> ... Do anything you like ... <% end %> <% end %> and then, instead of calling <% form as_p my_form %> you call <% include my_form_render(my_form) %> Artyom |