{{=value.class}} parse error #57

promadesign opened this Issue Jan 3, 2013 · 1 comment


None yet

2 participants


"{{=value.class}}" produces an parse error on ipad with safari 5.0.2
I am aware that "class" is "preserved" in javascript. BUT the rest of the browsers seem to accept it.
So the question is: Is this a bug in doT?

{{it.data :value:index}}

Quick fix:
Dont use "{{=value.class}}" but rename it to "{{=value.somethingelse}}"

olado commented Jan 3, 2013

doT templates are javascript templates, all code within {{=}} and {{}} is executed, so you are correct in that limitations of javascript apply.

@olado olado closed this Mar 6, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment