Re: [Cppcms-users] Template rendering. Access the actual class, rather then members?
Brought to you by:
artyom-beilis
|
From: Abhishek K. <abh...@gm...> - 2014-07-16 17:21:02
|
> Hi Artyom, Thanks for your reply. I have discovered the use of content varaible in template code using <% c++ .... %> and have solved my problem. I was about to post this, just to save your time in answering me. > if you want to access the object itself. What do you expect to do with it? If you access an object you access its members. We can have this case: <% form as_p form %> Rather than passing an object which wraps a form, we could have passed the form object directly to the render function. However, I don't think that would be possible, since form isn't inheriting from base_content (and doing multi-inheritance may be bad.) However, even without this, development is still going at our end smoothly. And this was just a design opinion that popped (due to habits of using Spring MVC, etc.). However, I don't think, cppcms template design is any less in any way. Regards, Abhishek |