Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

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

Closed
promadesign opened this Issue · 1 comment

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

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.