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

Possibility to change delimiters from curly braces #165

Open
nagyt234 opened this issue Jun 14, 2012 · 3 comments
Open

Possibility to change delimiters from curly braces #165

nagyt234 opened this issue Jun 14, 2012 · 3 comments

Comments

@nagyt234
Copy link

It would be very nice if it was possible to change the symbols used as delimiters, since the { }-delimeters conflicts with the template system we're currently using.

@rdworth
Copy link
Contributor

rdworth commented Jun 14, 2012

Do take note of the message on the homepage

"A templating plugin for jQuery. BETA. NO LONGER IN ACTIVE DEVELOPMENT OR MAINTENANCE. Issues remain open but are not being worked."

as well as in the README

@fedeghe
Copy link

fedeghe commented Jan 2, 2013

if u can forget about cache

function replaceall(tpl, o, dD, Dd) {
    var reg = new RegExp((dD || '%') + '([A-z0-9-_]*)' + (Dd || '%'), 'g'), str;
    return tpl.replace(reg, function (str, $1) {return o[$1] || $1; });
}

hope it helps

@xiunen
Copy link

xiunen commented Apr 17, 2013

${word} is a element show in the template, not the template variable. how can i make it possible.

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