作者qerter (研究僧)
看板LinuxDev
标题Re: [LIB ] 请问使用C写CGI,有template library可 …
时间Sun Mar 16 21:30:57 2008
※ 引述《qerter (研究僧)》之铭言:
: 就如同Perl写CGI可以使用HTML::Template模组。
: 请问使用gcc 相关CGI library的时候,有现成HTML Template library可以使用吗?
: 希望是Open source的,非常感谢回答:)
後来我自己有找到一个Open source的C Template library
叫做FLATE
http://flate.dead-inside.org/
Flate is a template library used to deal with html code in CGI applications.
The library includes C and Perl support. All html code is put in an external
file (the template) and printed using the library functions: variables, zones
(parts to be displayed or not) and tables (parts to be displayed 0 to n
times). Using this method you don't need to modify/recompile your application
when modifying html code, printing order doesn't matter in your CGI code, and
your CGI code is much cleaner.
给各位参考一下:)
--
跟着自由软体一起成长
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.127.220.20