Ce site fonctionne mieux avec JavaScript.
Accueil
Explorateur
Aide
Connexion
jan
/
mustache.js
miroir de
https://github.com/janl/mustache.js
Suivre
1
Ajouter aux favoris
0
Bifurcation
0
Code
Tickets
0
Versions
46
Wiki
Activité
Parcourir la source
Merge pull request
#380
from skybet/section-with-length-property
Section with "length" property
tags/v1.0.0
David da Silva Contín
il y a 11 ans
Parent
77a7ab344c
d9aa703014
révision
85e43f97d8
4 fichiers modifiés
avec
6 ajouts
et
1 suppressions
Vue séparée
Option de Diff
Voir les Statistiques
Télécharger le Fichier Patch
Télécharger le Fichier des Différences
+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
Voir le fichier
@@ -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
Voir le fichier
@@ -0,0 +1,3 @@
({
length: 'hello'
})
+ 1
- 0
test/_files/bug_length_property.mustache
Voir le fichier
@@ -0,0 +1 @@
{{#length}}The length variable is: {{length}}{{/length}}
+ 1
- 0
test/_files/bug_length_property.txt
Voir le fichier
@@ -0,0 +1 @@
The length variable is: hello
Écrire
Aperçu
Chargement…
Annuler
Enregistrer