Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using ${} more than once gives a syntax error #157

Open
row1 opened this issue Oct 3, 2011 · 5 comments
Open

Using ${} more than once gives a syntax error #157

row1 opened this issue Oct 3, 2011 · 5 comments

Comments

@row1
Copy link

row1 commented Oct 3, 2011

jQuery Templates Plugin 1.0.0pre

The below template causes a JavaScript syntax error:
<td>${} ${}</td>

Error on jquery.tmpl.js (line 359)
syntax error
var $=jQuery,call,__=[],$data=$item.da... {{=))));}__.push('</td>');}return __;

A workaround is to use:
<td>{{=}} {{=}}</td>

@reconbot
Copy link

reconbot commented Oct 4, 2011

What are you trying to do?

@row1
Copy link
Author

row1 commented Oct 5, 2011

I have an array of strings and want the value to be printed more than once. A more realistic example:
<td><div class='${}'>${}</div></td>

@rdworth
Copy link
Contributor

rdworth commented Oct 8, 2011

Thanks for taking the time to submit this issue. Just wanted to let you know this plugin is no longer being actively developed or maintained by the jQuery team. See README for more info.

@kusog
Copy link

kusog commented Oct 26, 2011

We greatly appreciate how this tmpl engine was put out for people to use and then dropped, leaving users like this with canned responses to questions. Software Development Politics at its best!

@rdworth
Copy link
Contributor

rdworth commented Oct 26, 2011

Software is tested and then abandoned all the time. This software was released as beta, not final, meaning not supported. While in beta, despite the interest from the community and the adoption that took place, there was no sub-team within the jQuery project that could agree to take it from beta to final and provide support for it (which for the jQuery project means indefinitely and completely for free), so that never happened. That will happen (as explained in http://blog.jquery.com/2011/04/16/official-plugins-a-change-in-the-roadmap/ ) but it will be an entirely new template plugin, not this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants