[Cppcms-users] RES: RES: RES: RES: RES: Run on Windows 7
Brought to you by:
artyom-beilis
From: Renato F. <re....@ay...> - 2011-03-24 12:55:33
|
If I provide full path, this should work? For sample, change this: <link href="style.css" rel="stylesheet" type="text/css"> To this: <link href="c:\cppcms\test\website\style.css" rel="stylesheet" type="text/css"> Thanks -----Mensagem original----- De: Artyom [mailto:art...@ya...] Enviada em: quinta-feira, 24 de março de 2011 09:32 Para: cpp...@li... Assunto: Re: [Cppcms-users] RES: RES: RES: RES: Run on Windows 7 > > But now, I already have a technical question, (is about how load > resources, gif, jpg, css, js etc) for sample this code: > > [snip[ > > Load html of disk, and show it, but not show linked resources like: > gif, jpg, css, js See html: > > [snip[ > ================ > Things like this, is not loaded: > > <link href="style.css" rel="stylesheet" type="text/css"> <img > src="imgs/spacer.gif" width="10" height="10"> <img src="imgs/vgs.gif" > width="749" height="189"> > > How solve this? Maybe provide correct document root for the web server??? Each image and stylesheet is server by indepenent re quest that generally web server is responsible for this. And it handles such things (static files) a way better... > > 2) I have a lot of stencil (ATL SERVE) pages, I want design same > thing that allow I use attribute of ATL Server in CPPCMS, I wil > design some thing that handle this: > > <title>{{onTitle}}</title> > > {{onTitle}} is attribute that will be replaced by some text. > > Other question, I'd see "Template System" this is like a: > google-ctemplate (http://code.google.com/p/google-ctemplate/). > CppCMS has very very powerful template system that is very good integrated with it (forms loading etc), fast and allows to do many things safely. Why should you use some other template system? I can suggest you, read tutorials, take a look on examples. Artyom ---------------------------------------------------------------------------- -- Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar _______________________________________________ Cppcms-users mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppcms-users |