Re: [Cppcms-users] RES: RES: RES: RES: Run on Windows 7
Brought to you by:
artyom-beilis
From: Artyom <art...@ya...> - 2011-03-24 12:31:56
|
> > 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 |