home
features
quick start
download
documentation
thymol files
configuration
message resources
control parameters
expression objects
thymol types
thymol API
thymol extensions
examples
sessions
say-hello
stsm example
with-dialect
extrathyme
petclinic
news
credits
user forum
issues
browser constraints
other known issues
create new issue
thymeleaf

thymoljs

execution order

The following functions provide the facility to inject JavaScript function objects into Thymol run-time processing sequence. These will be executed at predefined points in the Thymol life cycle.

example

    thymol.ready(function () {
        thymol.configurePreExecution( function() {
            thymol.sessionContext.createVariable("a","Some text");
            thymol.sessionContext.createVariable("b",123);
            thymol.sessionContext.createVariable("c","Hello");
        });
        thymol.configurePostExecution( function() {
            thymol.sessionContext = [];
        });
    });