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

quick start

The quick and easy way to start using Thymol is to add a script tag to an existing Thymeleaf template.

For example:

       <script type="text/javascript" src="http://cdn.jsdelivr.net/thymol/latest/thymol.min.js"></script>

Now load the Thymol-enabled template into your web browser using a local file open or equivalent.

If you now view the source of the resulting web page you might see that some of the embedded Thymeleaf attributes in the template have been successfully processed (and removed).

All but the simplest of templates will produce a result with unprocessed Thymeleaf attributes remaining in the source-view.

These are to be expected and will probably be the results of failures to process expressions due to unset variables, missing configuration items and so on.

debugging

An easy way to find out more about these processing failures is to turn on Thymol debugging.

Add the following script tag:

        <script type="text/javascript"> var thDebug = true;</script>

and refresh the web page.

Now Thymol should pop-up alert windows detailing problems as it encounters them.

next steps

To correct these failures you will have to add Thymol configuration and data.

You can find examples of how to set up data and configuration on this site and also in the sourceforge distribution (see here).

For more information please view documentation or examples.