Skip to content

zazl/zazl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dojo Zazl
---------

Enables developers to run Javascript on the server to render dynamic web pages using the Dojo Toolkit’s implementation of the Django Template Language. 

Quick Start using NodeJS
------------------------

Install NodeJS (>= ver 0.4.0)

The NodeJS package has some prereqs that need to be installed before attempting to use :

1)    paperboy (npm install paperboy)
2)    uglify-js (npm install uglify-js)
3)    jsdom (npm install jsdom)

Once these are installed untar the zazlnodejs.taz.gz file into a directory and within that directory run :

node zazlserver.js <path to files> <path to dojo> <loaderconfig file (defaults to syncloader.json)>

The tar file contains samples and also a copy of Dojo 1.5 (required by both Zazl and the samples) and Dojo 1.6 (used for the AMD optimizer samples)

To run the sync loader based samples use :

node zazlserver.js ./samples ./dojo15

To run the AMD optimizer samples use :

node zazlserver.js ./amdsamples ./dojo16 requirejs.json

In both cases open a browser and point it to http://localhost:8080/index.html

Quick Start using Jetty Server
------------------------------

Downloa the zazlserver.tar.gz file and uncompressed to your preferred <zazl-install-directory>

To start the server you must do the following:

1. Open a command prompt and point it to the directory: <zazl-install-directory>/server

2. To start Zazl with Rhino:
(Windows) run-zazl-rhino.bat
(Linux/Mac) ./run-zazl-rhino.sh

To start Zazl with V8:
(Windows) run-zazl-v8.bat
(Linux/Mac) ./run-zazl-v8.sh

3. Open a browser to http://localhost:8080/index.html

Example WAR files
-----------------

There are 2 WAR files in the download area that demonstrate using Zazl in a JEE WebContainer environment

zazlsamples.war — Samples WAR using Zazl DTL for HTML frontend. Once loaded go to http://localhost:8080/zazlsamples/index.html

zazlamdsamples.war — AMD Optimizer Samples using Zazl DTL for HTML frontend. Once loaded go to http://localhost:8080/zazlamdsamples/index.html

About

Zazl Server-side Template Engine

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors