Try OpenEdge Now
skip to main content
Online Help
Introducing WebSpeed support in Progress Developer Studio for OpenEdge : Tasks : Working with Web objects : Compiling Web objects
 
Compiling Web objects
In a WebSpeed project, you can compile SpeedScript (.htm or .html) files or CGI Wrapper (.w) files by:
*Right-clicking on a file name in the Progress Explorer view and selecting Progress > OpenEdge > Compile from the context menu.
*Saving a file open in the editor by typing CTRL+S or selecting File > Save from the main menu bar.
Go to the Build project properties page in order to change the target destination for compiled (.r) files. By default, compiled files are written in the same directory as the source file.
To access the Build properties page, right-click on the project name in the Progress Explorer view. Select Properties > Progress OpenEdge > Build.
When you compile a .htm or .html file, a .w file is created by default. The .w file is necessary for debugging purposes (you cannot debug an HTML file in Progress Developer Studio for OpenEdge).
You can stop the generation of the .w file or change the directory where it is stored on the SpeedScript properties page.
To access the SpeedScript properties page, right-click on the project name in the Progress Explorer view. Select Properties > Progress OpenEdge > SpeedScript.
If your .html file contains WSMETA NAME="wsoptions" and CONTENT="include", an include file (.i file) is created with the same name as the html when you compile the .html file. For example, if you create index.html and hello.html as follows and compile both the .html files, a corresponding hello.i file is created:
index.html:

<!DOCTYPE html>
<html>
<head>
<title>Hello World</title>
</head>
<body>
<!--WSS
DEF VAR l-hello AS CHAR NO-UNDO.

{ hello.i }
-->
<p>`l-hello`</p>
</body>
</html>
hello.html:

<!--WSMETA NAME="wsoptions" CONTENT="include" -->
<!--WSS
l-hello = "Thanks".
-->
<p>Thanks for including me!</p>
Note: If you do not see the include file (.i file) in the Project Explorer view, refresh the project.