Re: [Cppcms-users] Multiple class of render()
Brought to you by:
artyom-beilis
From: <ele...@ex...> - 2012-06-20 23:36:47
|
> > Is the usage of multiple render class the best solution? > Im not sure what youre trying to accomplish, but cant you solve that with template inheritance instead of multiple render function? Did you look at returning JSON instead of HTML? I mean, it kind of makes ajax useless if you are returning HTML with AJAX as the whole point of AJAX is to diminish network traffic. Im not sure about the static qualifier of the content object though. Artyom might have to answer this but i didnt think cppcms::base_content is thread safe. So you should make sure you arent modifying it anywhere. |