Releases: codeaddicts/jsowl
Releases · codeaddicts/jsowl
Codeaddicts JSowl Alpha 1.0.5457
jsowl Alpha
This is the first public alpha version of jsowl.
Binaries (Windows)
JSowl Alpha x86:
Requirements: Mono / .Net 4.5
- Compiler CLI: jsowl.exe
- Compiler Library: libjsowl.dll
JSowl-CGI Alpha x86:
Requirements: Mono / .Net 4.5
- CGI application: jsowl-cgi.exe
- Compiler Library: libjsowl.dll
Binaries (Linux)
JSowl Alpha x86 for Linux
Requirements: Mono 4.5
- Compiler CLI: jsowl.exe
- Compiler Library: libjsowl.dll
- Shell script: jsowl
- Howto: howto.txt
Compiler CLI
Usage: jsowl.exe -i [-o ] [OPTIONS]
Options:
- -vall | Very verbose output
- --main | Use the main() method as entry point and execute it automatically when the DOM is ready
- --keep-newlines | Keeps newlines in the generated js code (not implemented yet)
CGI Application
Configuration using Apache2
- Navigate to your apache2 conf folder and open the httpd.conf file
- Append the following to the end of the file:
# jsowl-cgi
AddHandler cgi-script .exe
Action text/jsowl /cgi-bin/jsowl-cgi.exe
AddType text/jsowl .jsl
Action eval-jsowl /cgi-bin/jsowl-cgi.exe
AddHandler eval-jsowl .jsl
- Extract the zip file into your apache2 cgi-bin folder
Testing if it works
Create two files in your apache2 document root folder:
- index.html
- test.jsl
index.html:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script src="test.jsl"></script>
</head>
<body>
</body>
</html>
test.jsl:
def Hello {
alert ("Hello from jsowl!");
}
Hello ();
Open a browser, navigate to 127.0.0.1/index.html and see the magic happen!
Troubleshooting
Not working?
Open up your httpd.conf and look for something like that (assuming you are using xampp):
<Directory "C:/xampp/cgi-bin">
Require all granted
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
</Directory>
Important: Options +ExecCGI must be set. It won't work otherwise.