Re: [LIB ] 請問使用C寫CGI,有template library可 …
※ 引述《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
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 2 篇):
LinuxDev 近期熱門文章
PTT數位生活區 即時熱門文章