Updating to version 3.2 #4

Merged
merged 1 commit into from Nov 8, 2011
View
@@ -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){