Преглед на файлове

Reorder the functions in terms of importance.

tags/0.5.2-vsc
Sahab Yazdani преди 14 години
родител
ревизия
85d00a501e
променени са 1 файла, в които са добавени 14 реда и са изтрити 11 реда
  1. +14
    -11
      mustache.js

+ 14
- 11
mustache.js Целия файл

@@ -628,18 +628,9 @@ var Mustache = (function(undefined) {
name: "mustache.js",
version: "0.5.1-vcs",

/*
Turns a template and view into HTML
/*
Turns a template into a JS function
*/
to_html: function(template, view, partials, send_func) {
var program = Mustache.compile(template, partials),
result = program(view, send_func);
if (!send_func) {
return result;
}
},
compile: function(template, partials) {
var p = {};
if (partials) {
@@ -665,6 +656,18 @@ var Mustache = (function(undefined) {
}
},
/*
Turns a template and view into HTML
*/
to_html: function(template, view, partials, send_func) {
var program = Mustache.compile(template, partials),
result = program(view, send_func);
if (!send_func) {
return result;
}
},

Error: MustacheError
});
})();

Loading…
Отказ
Запис