Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Updating to version 3.2 #4

Merged
merged 1 commit into from

2 participants

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 14 deletions.
  1. +3 −14 mustache.js
View
17 mustache.js
@@ -1,24 +1,13 @@
-steal.plugins('jquery/view','jquery/lang/json')
- .then("./handlebars")
+steal('jquery/view','jquery/lang/json')
+ .then("./handlebars.js")
.then(function($) {
Handlebars.TemplateCache = {};
- var replaceChar = steal.cleanId('/');
-
- steal.build.types['text/mustache'] = function(script,loadScriptText) {
- var text = script.text || loadScriptText(script.src),
- id = script.id || script.getAttribute("id");
- // there is a bug in steal when building on windows that causes it to
- // put backslashes in there
- id = id.replace(/\\/g,replaceChar);
- return jQuery.View.registerScript("mustache", id, text);
- };
-
$.View.register({
suffix: "mustache",
-
+ plugin: "jquery/view/mustache",
renderer: function(id, text){
Handlebars.TemplateCache[id] = Handlebars.compile(text);
return function(data, helpers){
Something went wrong with that request. Please try again.