An important benefit that the expression language brings is that you can use it to script the CSS template file of your themes (see paragraph Chapter 1: Styles).
This example shows how to use MWT APIs in the CSS template the write a selector that works as a container for the XHTML elements in your widgets:
Example 2.4. Scripting the CSS template with the expression language: a container with the current device width
.cointainer { width: ${mwt:width()}px; }
The next example shows how to use style options in the template file: