Hi
How to programatically compile web (html/htm) files ?
Hi,
Are you talking about the speedscript html/htm files ? If yes then, I follow the below process
Script to compile html to .w
/***************************************************/
{ src/web/method/cgidefs.i "NEW"}
OUTPUT to temp.out.
define var eparam as char.
define var wfile as char.
define var htmlfile as char.
eparam = SESSION:PARAMETER.
wfile = eparam + ".w".
htmlfile = eparam + ".html".
DEFINE VARIABLE speedfile AS CHARACTER.
DEFINE VARIABLE wsoptions AS CHARACTER.
message wfile.
message htmlfile.
ASSIGN speedfile = wfile
wsoptions = "".
RUN tty/webutil/e4gl-gen.r
(INPUT htmlfile,
INPUT-OUTPUT speedfile,
INPUT-OUTPUT wsoptions).
/***************************************************/