Re: [Cppcms-users] View skin
Brought to you by:
artyom-beilis
From: Jan V. <jan...@gm...> - 2012-03-21 07:01:22
|
Hi Marcel, Thanks for response. I have tried it with the same skin name across all views, but It just does not produce anything. As soon as I supply different name for each view, it works fine. Should I include the skin name in the config.js or ... ? I cannot really see what is wrong as the views are working fine with distinct skin names. Any suggestions. Thanks, Jan On Tue, Mar 20, 2012 at 8:42 AM, Marcel Hellwig <ke...@co...> wrote: > 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 > > > ------------------------------------------------------------------------------ > This SF email is sponsosred by: > Try Windows Azure free for 90 days Click Here > http://p.sf.net/sfu/sfd2d-msazure > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > -- Jan Vlasak Flat 2 39 Hurst Lane Birmingham B34 7HS ph.:+44 754 6124920 |