Il sito funziona meglio con JavaScript.
Home
Esplora
Aiuto
Accedi
jan
/
mustache.js
mirror da
https://github.com/janl/mustache.js
Segui
1
Vota
0
Forka
0
Codice
Problemi
0
Rilasci
46
Wiki
Attività
Sfoglia il codice sorgente
Merge pull request
#380
from skybet/section-with-length-property
Section with "length" property
tags/v1.0.0
David da Silva Contín
11 anni fa
parent
77a7ab344c
d9aa703014
commit
85e43f97d8
4 ha cambiato i file
con
6 aggiunte
e
1 eliminazioni
Visualizzazione separata
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
mustache.js
+3
-0
test/_files/bug_length_property.js
+1
-0
test/_files/bug_length_property.mustache
+1
-0
test/_files/bug_length_property.txt
+ 1
- 1
mustache.js
Vedi File
@@ -368,7 +368,7 @@
while (value != null && index < names.length)
value = value[names[index++]];
} else {
} else
if (typeof context.view == 'object')
{
value = context.view[name];
}
+ 3
- 0
test/_files/bug_length_property.js
Vedi File
@@ -0,0 +1,3 @@
({
length: 'hello'
})
+ 1
- 0
test/_files/bug_length_property.mustache
Vedi File
@@ -0,0 +1 @@
{{#length}}The length variable is: {{length}}{{/length}}
+ 1
- 0
test/_files/bug_length_property.txt
Vedi File
@@ -0,0 +1 @@
The length variable is: hello
Write
Preview
Loading…
Annulla
Salva