Re: [LIB ] 請問使用C寫CGI,有template library可 …

看板LinuxDev作者 (研究僧)時間17年前 (2008/03/16 13:30), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/2 (看更多)
※ 引述《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
文章代碼(AID): #17tI4Jq9 (LinuxDev)
討論串 (同標題文章)
文章代碼(AID): #17tI4Jq9 (LinuxDev)