Tämä sivusto toimii paremmin JavaScriptillä.
Etusivu
Tutki
Apua
Kirjaudu sisään
jan
/
mustache.js
peilaus alkaen
https://github.com/janl/mustache.js
Tarkkaile
1
Äänestä
0
Fork
0
Koodi
Ongelmat
0
Julkaisut
46
Wiki
Activity
Selaa lähdekoodia
Merge pull request
#553
from janl/escaped-lookup-test
Assert null lookup when rendering an unescaped value
tags/v2.3.0
David da Silva
10 vuotta sitten
vanhempi
bdfb5d069e
7e83df9b05
commit
9017163785
5 muutettua tiedostoa
jossa
32 lisäystä
ja
30 poistoa
Jaettu näkymä
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
test/_files/escaped.js
+1
-1
test/_files/escaped.mustache
+27
-27
test/_files/null_lookup_object.js
+2
-1
test/_files/unescaped.js
+1
-1
test/_files/unescaped.mustache
+ 1
- 0
test/_files/escaped.js
Näytä tiedosto
@@ -2,5 +2,6 @@
title: function () {
return "Bear > Shark";
},
symbol: null,
entities: "" \"'<>`=/"
})
+ 1
- 1
test/_files/escaped.mustache
Näytä tiedosto
@@ -1,2 +1,2 @@
<h1>{{title}}</h1>
<h1>{{title}}
{{symbol}}
</h1>
And even {{entities}}, but not {{{entities}}}.
+ 27
- 27
test/_files/null_lookup_object.js
Näytä tiedosto
@@ -1,31 +1,31 @@
({
"name": "David",
"twitter": "@dasilvacontin",
"fobject": [
{
"name": "Flor",
"twitter": "@florrts"
},
{
"name": "Miquel",
"twitter": null
},
{
"name": "Chris",
"twitter": undefined
}
],
"favorites": {
"color": "blue",
"president": "Bush",
"show": "Futurama"
"name": "David",
"twitter": "@dasilvacontin",
"fobject": [
{
"name": "Flor",
"twitter": "@florrts"
},
{
"name": "Miquel",
"twitter": null
},
"mascot": {
"name": "Squid",
"favorites": {
"color": "orange",
"president": undefined,
"show": null
}
{
"name": "Chris",
"twitter": undefined
}
],
"favorites": {
"color": "blue",
"president": "Bush",
"show": "Futurama"
},
"mascot": {
"name": "Squid",
"favorites": {
"color": "orange",
"president": undefined,
"show": null
}
}
})
+ 2
- 1
test/_files/unescaped.js
Näytä tiedosto
@@ -1,5 +1,6 @@
({
title: function () {
return "Bear > Shark";
}
},
symbol: null
})
+ 1
- 1
test/_files/unescaped.mustache
Näytä tiedosto
@@ -1 +1 @@
<h1>{{{title}}}</h1>
<h1>{{{title}}}
{{{symbol}}}
</h1>
Write
Preview
Loading…
Peruuta
Tallenna