November 3, 2012

backbone.jsでデリミタを変更する

メモ。
_.templateSettings = {
    interpolate: /\{\{\=(.+?)\}\}/g,
    evaluate: /\{\{(.+?)\}\}/g
};

参考:
http://stackoverflow.com/questions/7514922/rails-with-underscore-js-templates

No comments:

Post a Comment