Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Updating to version 3.2 #4

Merged
merged 1 commit into from over 2 years ago

2 participants

David Luecke Thomas Reynolds
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 1 changed file with 3 additions and 14 deletions. Show diff stats Hide diff stats

  1. +3 14 mustache.js
17 mustache.js
... ... @@ -1,24 +1,13 @@
1   -steal.plugins('jquery/view','jquery/lang/json')
2   - .then("./handlebars")
  1 +steal('jquery/view','jquery/lang/json')
  2 + .then("./handlebars.js")
3 3 .then(function($) {
4 4
5 5 Handlebars.TemplateCache = {};
6 6
7   - var replaceChar = steal.cleanId('/');
8   -
9   - steal.build.types['text/mustache'] = function(script,loadScriptText) {
10   - var text = script.text || loadScriptText(script.src),
11   - id = script.id || script.getAttribute("id");
12   - // there is a bug in steal when building on windows that causes it to
13   - // put backslashes in there
14   - id = id.replace(/\\/g,replaceChar);
15   - return jQuery.View.registerScript("mustache", id, text);
16   - };
17   -
18 7 $.View.register({
19 8
20 9 suffix: "mustache",
21   -
  10 + plugin: "jquery/view/mustache",
22 11 renderer: function(id, text){
23 12 Handlebars.TemplateCache[id] = Handlebars.compile(text);
24 13 return function(data, helpers){

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.