Jan Lehnardt před 16 roky
rodič
revize
88ddf16cec
4 změnil soubory, kde provedl 8 přidání a 1 odebrání
  1. +1
    -0
      examples/empty_template.html
  2. +1
    -0
      examples/empty_template.js
  3. +1
    -0
      examples/empty_template.txt
  4. +5
    -1
      mustache.js

+ 1
- 0
examples/empty_template.html Zobrazit soubor

@@ -0,0 +1 @@
<html><head></head><body><h1>Test</h1></body></html>

+ 1
- 0
examples/empty_template.js Zobrazit soubor

@@ -0,0 +1 @@
var empty_template = {};

+ 1
- 0
examples/empty_template.txt Zobrazit soubor

@@ -0,0 +1 @@
<html><head></head><body><h1>Test</h1></body></html>

+ 5
- 1
mustache.js Zobrazit soubor

@@ -21,7 +21,11 @@ var Mustache = function() {
render: function(template, context, partials, in_recursion) {
// fail fast
if(template.indexOf(this.otag) == -1) {
return template;
if(in_recursion) {
return template;
} else {
this.send(template);
}
}

if(!in_recursion) {


Načítá se…
Zrušit
Uložit