How to programatically compile web (html/htm) files ?

Posted by HachDev on 03-Jun-2015 08:28

Hi

How to programatically compile web (html/htm) files ?

All Replies

Posted by Irfan on 03-Jun-2015 08:34

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).

/***************************************************/

This thread is closed