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

control parameters

The are a number of pre-defined JavaScript variable names that define parameters that may be used to control the way that Thymol behaves when running, these parameters have names the beginning with the prefix "th".

scalar valued parameters

You may set any of the scalar valued parameters by one of the following mechanisms:

e.g. The value of thProtocol may be set to "http://" for a particular template using:

      <script type="text/javascript" src="../../../js/thymol.js" data-thymol-parameters="?thProtocol=http://"></script>

    

structure valued parameters

A detailed description of the effects of each of these parameters is discussed in further sub-sections of this page. You can reach these using the sub-menu selections on the left.

Setting the values of the structure valued parameters is best done in JavaScript.