G
global
There is a Template Engine for C like Smarty (http://smarty.php.net/)
to separate the html from the C code?
Thanks,
Carlos.
to separate the html from the C code?
Thanks,
Carlos.
There is a Template Engine for C like Smarty (http://smarty.php.net/)
to separate the html from the C code?
how do you combine C and HTML? IMHO if you want to use say OOP-like
functionality in HTML or alike, use PHP
greetings,
well, HOW do you want to employ C with HTML? putout HTML code with C?
I want to modify a web server log file analysis program written in C
(the output it's a html). Now the code it's a mess and i want to use
html templates in order to make easier to modify the html output in the
future.
ah, ok - thx for the fill-in... maybe it is possible to put the html
and include functions in C that add smarty-style functionality to it.
but AFAIK is smarty for PHP files, right? so if you are able to put out
.php files, you may have a cron or alike run over the files with a php
script and modify them? just a suggest though since i never actually
tried something like this...
hth,
Thanks Erich but i don't want to complicate myself so much. Maybe a C
cgi library has some similar to Template Engine.
maybe you can circumvent all the hassle by simply modifying the C code
to include a CSS-stylesheet into the output html. then you can simply
do the spacing etc. with relative or absolute DIVs and SPANs (just to
complicate this further ; )
greetings,
There isn't anything like PHP templates in C. PHP is an interpretedNeurotic said:Erich Pul ha escrito:
I want to modify a web server log file analysis program written in C
(the output it's a html). Now the code it's a mess and i want to use
html templates in order to make easier to modify the html output in the
future.
There is a Template Engine for C like Smarty (http://smarty.php.net/)
to separate the html from the C code?
Thanks,
Carlos.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.