看板 LinuxDev 關於我們 聯絡資訊
※ 引述《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