Re: [Cppcms-users] View skin
Brought to you by:
artyom-beilis
From: Marcel H. <ke...@co...> - 2012-03-20 08:43:16
|
Am 20.03.2012 08:51, schrieb Jan Vlasak: > Hi, > > I would like to ask whether there is a way of specifying only one skin > for all views. I found an example in the message_board but these views > are dynamically linked and I need them static. > When I try and remove the config section "views" and run the > application, it does not produce any output (blank page). I hope you included them in the make /CMake file (whatever) Look at this http://cppcms.com/wikipp/en/page/cppcms_1x_tut_hello_templates#Linking.Statically > The specific view is rendered by: render("view_name", model) > The view looks like this: > <% c++ #include "model.h" %> > <% xhtml %> > <% skin %> > <% view view_name uses Model %> > <% template render() %> > ......... > <% end template %> > <% end view %> > <% end skin %> > What's wrong about this? Afaik you do not must name your skin, but I really would prefer it? Why don't you name it and then stay with that name all the time? This is how I do it often, with little projects. > Thank you > > Jan Vlasak Marcel |