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

Closed
promadesign opened this Issue Jan 3, 2013 · 1 comment

Projects

None yet

2 participants

@promadesign

"{{=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?

Example:
{{it.data :value:index}}
{{=value.class}}
{{
}}

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

@olado
Owner
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