Prudence
The Scalable REST/JVM
Web Development Platform

HTML Generation Demos

These demos all do pretty much the same thing, except that each uses a different language. They're here as as examples of how to write scriptlets. Note that at the top of each page you will see a timestamp -- this is used to test caching mode, during which the timestamp should stay constant for 5 seconds, no matter how many times you refresh the page. See the FAQ for an explanation of deferred mode.


JavaScript

caching mode
deferred mode
source

PHP

caching mode
deferred mode
source

Python (Jython)

caching mode
deferred mode
source

Python (Jepp)

n/a

Ruby

caching mode
deferred mode
source

Groovy

caching mode
deferred mode
source

Clojure

caching mode
deferred mode
source

Velocity

caching mode
deferred mode
source