The WebDSL documentation states that attributes/styling can be added to template calls:


Classes for styling can also be added to a template call (separate from the regular arguments):

input[class="mynameinput"](u.name)

However, input[class="mynameinput"]("A") causes syntax errors:

Multiple messages:
- Template with signature input() not defined 
- Syntax error, not expected here: '('
- Syntax error, not expected here: ')'

Is the correct syntax to put the [] after the template call? If so the documentation at http://webdsl.org/selectpage/Manual/Styling should be updated.

Submitted by Gabriƫl Konat on 17 February 2013 at 16:31

Log in to post comments