[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Savannah-hackers] submission of htmlc2c: HTML with embeded C to C - sav

From: smceligot
Subject: [Savannah-hackers] submission of htmlc2c: HTML with embeded C to C -
Date: Sat, 28 Sep 2002 20:40:29 -0400
User-agent: Mozilla/5.0 Galeon/1.2.5 (X11; Linux i586; U;) Gecko/20020623 Debian/1.2.5-0.woody.1

A package was submitted to
This mail was sent to address@hidden, address@hidden

Sean McEligot <address@hidden> described the package as follows:
License: gpl
Other License: 
Package: htmlc2c: HTML with embeded C to C
System name: htmlc2c
Type: GNU

My project takes html with embeded c code and outputs a c code that 
compiles to a cgi program. (actuall it\\\'s c++, but I can change it to c, 
if that is preferable.) An option will be added to support fastcgi to 
truly realize the speed benifits of c. Here\\\'s a example:

<meta name=\\\"generator\\\" content=\\\"HTML Tidy, see\\\">
<meta name=\\\"generator\\\" content=\\\"txt2html v1.28\\\">
<base href=\\\"file:///E:/cygwin/usr/src/html2cgi-0.1/test.html\\\">
<style type=\\\"text/css\\\">
 code.cgi {color:grey;white-space:pre}
This is plain html<br>
<code class=\\\"cgi\\\">
        fputs(\\\"<h1>this is c</h1>\\\\n\\\", stdout);
This is html again<br>

You can also use <script type=\\\"text/c++\\\"> instead of <code 
class=\\\"cgi\\\">, if you don\\\'t want to see the c code in your unparsed 

You can download the source from:

Other Software Required:
depends on libtemplate
libtemplate depends on pcre and glib

Other Comments:
This is alpha code. It has memory leaks, and bugs. don\'t try to 
install it. Compile and install tpe, then compile html2c and run in the 
source direcory using \"make test runtest\" 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]