Compile HTML

kirsch59

Member
I would like to compile SpeeedScript and CGI wrapper programs from a desktop shortcut running Windows Server 2003. I'm running OpenEdge 10.1C patch 3.

Does any one have a program or know the commands to compile the HTML and create a *.r?

Thanks
Mark
 
Search for _compile webspeed for 10.1C @psdn ( I don't know if it is already at psdn, nor that it will be there since the person who made this usually doesn;t work @ progress anymore).

If it isn't there then first run
webutils/e4gl-gen.p and then compile the generated .w file.

Example:

Code:
DEFINE INPUT  PARAMETER cp_file AS CHARACTER   NO-UNDO.
DEFINE INPUT  PARAMETER cp_savedir AS CHARACTER   NO-UNDO.
 
DEFINE VARIABLE c_msg AS CHARACTER   NO-UNDO.
DEFINE VARIABLE l_ishtml AS LOGICAL     NO-UNDO.
DEFINE VARIABLE c_options AS CHARACTER   NO-UNDO.
DEFINE VARIABLE c_outfile AS CHARACTER   NO-UNDO.
 
IF SUBSTRING(ENTRY(NUM-ENTRIES(cp_file,'.'),cp_file,'.'),1,3) = 'htm'
THEN DO:
   ASSIGN l_ishtml = true.
   RUN webutil\e4gl-gen.r( INPUT cp_file,
                           INPUT-OUTPUT c_options,
                           INPUT-OUTPUT c_outfile
                          ). 
END.
COMPILE VALUE(IF l_ishtml THEN c_outfile ELSE cp_file) SAVE INTO VALUE(cp_savedir) NO-ERROR.
IF COMPILER:ERROR 
THEN DO:
/* error-handling */
END.
ELSE /*log message */.
IF l_ishtml THEN OS-DELETE VALUE(c_outfile).

HTH,

Casper.
 
Back
Top