This commit is contained in:
synth-ruiner
2017-12-22 17:22:08 +00:00
commit 495f1d958e
3484 changed files with 393731 additions and 0 deletions

7
node_modules/pug/test/output/attrs-data.html generated vendored Normal file
View File

@@ -0,0 +1,7 @@
<foo data-user="{&quot;name&quot;:&quot;tobi&quot;}"></foo>
<foo data-items="[1,2,3]"></foo>
<foo data-username="tobi"></foo>
<foo data-escaped="{&quot;message&quot;:&quot;Let's rock!&quot;}"></foo>
<foo data-ampersand="{&quot;message&quot;:&quot;a quote: &amp;quot; this &amp; that&quot;}"></foo>
<foo data-epoc="1970-01-01T00:00:00.000Z"></foo>

49
node_modules/pug/test/output/attrs-data.js generated vendored Normal file
View File

@@ -0,0 +1,49 @@
function pug_attr(t, e, n, f) {
return !1 !== e && null != e && (e || "class" !== t && "style" !== t) ? !0 === e ? " " + (f ? t : t + '="' + t + '"') : ("function" == typeof e.toJSON && (e = e.toJSON()),
"string" == typeof e || (e = JSON.stringify(e), n || -1 === e.indexOf('"')) ? (n && (e = pug_escape(e)),
" " + t + '="' + e + '"') : " " + t + "='" + e.replace(/'/g, "&#39;") + "'") : "";
}
function pug_escape(e) {
var a = "" + e, t = pug_match_html.exec(a);
if (!t) return e;
var r, c, n, s = "";
for (r = t.index, c = 0; r < a.length; r++) {
switch (a.charCodeAt(r)) {
case 34:
n = "&quot;";
break;
case 38:
n = "&amp;";
break;
case 60:
n = "&lt;";
break;
case 62:
n = "&gt;";
break;
default:
continue;
}
c !== r && (s += a.substring(c, r)), c = r + 1, s += n;
}
return c !== r ? s + a.substring(c, r) : s;
}
var pug_match_html = /["&<>]/;
function template(locals) {
var pug_html = "", pug_mixins = {}, pug_interp;
var locals_for_with = locals || {};
(function(Date) {
var user = {
name: "tobi"
};
pug_html = pug_html + "<foo" + pug_attr("data-user", user, true, false) + '></foo><foo data-items="[1,2,3]"></foo><foo data-username="tobi"></foo><foo data-escaped="{&quot;message&quot;:&quot;Let\'s rock!&quot;}"></foo><foo data-ampersand="{&quot;message&quot;:&quot;a quote: &amp;quot; this &amp; that&quot;}"></foo><foo' + pug_attr("data-epoc", new Date(0), true, false) + "></foo>";
}).call(this, "Date" in locals_for_with ? locals_for_with.Date : typeof Date !== "undefined" ? Date : undefined);
return pug_html;
}

2
node_modules/pug/test/output/attrs.colon.html generated vendored Normal file
View File

@@ -0,0 +1,2 @@
<div :my-var="model"></div><span v-for="item in items" :key="item.id" :value="item.name"></span><span v-for="item in items" :key="item.id" :value="item.name"></span><a :link="goHere" value="static" :my-value="dynamic" @click="onClick()" :another="more">Click Me!</a>

5
node_modules/pug/test/output/attrs.colon.js generated vendored Normal file
View File

@@ -0,0 +1,5 @@
function template(locals) {
var pug_html = "", pug_mixins = {}, pug_interp;
pug_html = pug_html + '<div :my-var="model"></div><span v-for="item in items" :key="item.id" :value="item.name"></span><span v-for="item in items" :key="item.id" :value="item.name"></span><a :link="goHere" value="static" :my-value="dynamic" @click="onClick()" :another="more">Click Me!</a>';
return pug_html;
}

20
node_modules/pug/test/output/attrs.html generated vendored Normal file
View File

@@ -0,0 +1,20 @@
<a href="/contact">contact</a><a class="button" href="/save">save</a><a foo="foo" bar="bar" baz="baz"></a><a foo="foo, bar, baz" bar="1"></a><a foo="((foo))" bar="1"></a>
<select>
<option value="foo" selected="selected">Foo</option>
<option selected="selected" value="bar">Bar</option>
</select><a foo="class:"></a>
<input pattern="\S+"/><a href="/contact">contact</a><a class="button" href="/save">save</a><a foo="foo" bar="bar" baz="baz"></a><a foo="foo, bar, baz" bar="1"></a><a foo="((foo))" bar="1"></a>
<select>
<option value="foo" selected="selected">Foo</option>
<option selected="selected" value="bar">Bar</option>
</select><a foo="class:"></a>
<input pattern="\S+"/>
<foo terse="true"></foo>
<foo date="1970-01-01T00:00:00.000Z"></foo>
<foo abc="abc" def="def"></foo>
<foo abc="abc" def="def"></foo>
<foo abc="abc" def="def"></foo>
<foo abc="abc" def="def"></foo>
<foo abc="abc" def="def"></foo>
<foo abc="abc" def="def"></foo>
<div foo="bar" bar="<baz>"></div><a foo="foo" bar="bar"></a><a foo="foo" bar="bar"></a>

93
node_modules/pug/test/output/attrs.js generated vendored Normal file
View File

@@ -0,0 +1,93 @@
function pug_attr(t, e, n, f) {
return !1 !== e && null != e && (e || "class" !== t && "style" !== t) ? !0 === e ? " " + (f ? t : t + '="' + t + '"') : ("function" == typeof e.toJSON && (e = e.toJSON()),
"string" == typeof e || (e = JSON.stringify(e), n || -1 === e.indexOf('"')) ? (n && (e = pug_escape(e)),
" " + t + '="' + e + '"') : " " + t + "='" + e.replace(/'/g, "&#39;") + "'") : "";
}
function pug_attrs(t, r) {
var a = "";
for (var s in t) if (pug_has_own_property.call(t, s)) {
var u = t[s];
if ("class" === s) {
u = pug_classes(u), a = pug_attr(s, u, !1, r) + a;
continue;
}
"style" === s && (u = pug_style(u)), a += pug_attr(s, u, !1, r);
}
return a;
}
function pug_classes(s, r) {
return Array.isArray(s) ? pug_classes_array(s, r) : s && "object" == typeof s ? pug_classes_object(s) : s || "";
}
function pug_classes_array(r, a) {
for (var s, e = "", u = "", c = Array.isArray(a), g = 0; g < r.length; g++) (s = pug_classes(r[g])) && (c && a[g] && (s = pug_escape(s)),
e = e + u + s, u = " ");
return e;
}
function pug_classes_object(r) {
var a = "", n = "";
for (var o in r) o && r[o] && pug_has_own_property.call(r, o) && (a = a + n + o,
n = " ");
return a;
}
function pug_escape(e) {
var a = "" + e, t = pug_match_html.exec(a);
if (!t) return e;
var r, c, n, s = "";
for (r = t.index, c = 0; r < a.length; r++) {
switch (a.charCodeAt(r)) {
case 34:
n = "&quot;";
break;
case 38:
n = "&amp;";
break;
case 60:
n = "&lt;";
break;
case 62:
n = "&gt;";
break;
default:
continue;
}
c !== r && (s += a.substring(c, r)), c = r + 1, s += n;
}
return c !== r ? s + a.substring(c, r) : s;
}
var pug_has_own_property = Object.prototype.hasOwnProperty;
var pug_match_html = /["&<>]/;
function pug_style(r) {
if (!r) return "";
if ("object" == typeof r) {
var t = "";
for (var e in r) pug_has_own_property.call(r, e) && (t = t + e + ":" + r[e] + ";");
return t;
}
return r += "", ";" !== r[r.length - 1] ? r + ";" : r;
}
function template(locals) {
var pug_html = "", pug_mixins = {}, pug_interp;
var locals_for_with = locals || {};
(function(Date) {
pug_html = pug_html + '<a href="/contact">contact</a><a class="button" href="/save">save</a><a foo="foo" bar="bar" baz="baz"></a><a foo="foo, bar, baz" bar="1"></a><a foo="((foo))" bar="1"></a><select><option value="foo" selected="selected">Foo</option><option selected="selected" value="bar">Bar</option></select><a foo="class:"></a><input pattern="\\S+"/><a href="/contact">contact</a><a class="button" href="/save">save</a><a foo="foo" bar="bar" baz="baz"></a><a foo="foo, bar, baz" bar="1"></a><a foo="((foo))" bar="1"></a><select><option value="foo" selected="selected">Foo</option><option selected="selected" value="bar">Bar</option></select><a foo="class:"></a><input pattern="\\S+"/><foo terse="true"></foo><foo' + pug_attr("date", new Date(0), true, false) + '></foo><foo abc="abc" def="def"></foo><foo abc="abc" def="def"></foo><foo abc="abc" def="def"></foo><foo abc="abc" def="def"></foo><foo abc="abc" def="def"></foo><foo abc="abc" def="def"></foo>';
var attrs = {
foo: "bar",
bar: "<baz>"
};
pug_html = pug_html + "<div" + pug_attrs(attrs, false) + '></div><a foo="foo" bar="bar"></a><a foo="foo" bar="bar"></a>';
}).call(this, "Date" in locals_for_with ? locals_for_with.Date : typeof Date !== "undefined" ? Date : undefined);
return pug_html;
}

5
node_modules/pug/test/output/attrs.js.html generated vendored Normal file
View File

@@ -0,0 +1,5 @@
<a class="button" href="/user/5"></a><a class="button" href="/user/5"></a>
<meta key="answer" value="42"/><a class="class1 class2"></a><a class="tag-class class1 class2"></a><a class="button" href="/user/5"></a><a class="button" href="/user/5"></a>
<meta key="answer" value="42"/><a class="class1 class2"></a><a class="tag-class class1 class2"></a>
<div id="5" foo="bar"></div>
<div baz="baz"></div>

115
node_modules/pug/test/output/attrs.js.js generated vendored Normal file
View File

@@ -0,0 +1,115 @@
function pug_attr(t, e, n, f) {
return !1 !== e && null != e && (e || "class" !== t && "style" !== t) ? !0 === e ? " " + (f ? t : t + '="' + t + '"') : ("function" == typeof e.toJSON && (e = e.toJSON()),
"string" == typeof e || (e = JSON.stringify(e), n || -1 === e.indexOf('"')) ? (n && (e = pug_escape(e)),
" " + t + '="' + e + '"') : " " + t + "='" + e.replace(/'/g, "&#39;") + "'") : "";
}
function pug_attrs(t, r) {
var a = "";
for (var s in t) if (pug_has_own_property.call(t, s)) {
var u = t[s];
if ("class" === s) {
u = pug_classes(u), a = pug_attr(s, u, !1, r) + a;
continue;
}
"style" === s && (u = pug_style(u)), a += pug_attr(s, u, !1, r);
}
return a;
}
function pug_classes(s, r) {
return Array.isArray(s) ? pug_classes_array(s, r) : s && "object" == typeof s ? pug_classes_object(s) : s || "";
}
function pug_classes_array(r, a) {
for (var s, e = "", u = "", c = Array.isArray(a), g = 0; g < r.length; g++) (s = pug_classes(r[g])) && (c && a[g] && (s = pug_escape(s)),
e = e + u + s, u = " ");
return e;
}
function pug_classes_object(r) {
var a = "", n = "";
for (var o in r) o && r[o] && pug_has_own_property.call(r, o) && (a = a + n + o,
n = " ");
return a;
}
function pug_escape(e) {
var a = "" + e, t = pug_match_html.exec(a);
if (!t) return e;
var r, c, n, s = "";
for (r = t.index, c = 0; r < a.length; r++) {
switch (a.charCodeAt(r)) {
case 34:
n = "&quot;";
break;
case 38:
n = "&amp;";
break;
case 60:
n = "&lt;";
break;
case 62:
n = "&gt;";
break;
default:
continue;
}
c !== r && (s += a.substring(c, r)), c = r + 1, s += n;
}
return c !== r ? s + a.substring(c, r) : s;
}
var pug_has_own_property = Object.prototype.hasOwnProperty;
var pug_match_html = /["&<>]/;
function pug_merge(r, e) {
if (1 === arguments.length) {
for (var t = r[0], a = 1; a < r.length; a++) t = pug_merge(t, r[a]);
return t;
}
for (var g in e) if ("class" === g) {
var l = r[g] || [];
r[g] = (Array.isArray(l) ? l : [ l ]).concat(e[g] || []);
} else if ("style" === g) {
var l = pug_style(r[g]), n = pug_style(e[g]);
r[g] = l + n;
} else r[g] = e[g];
return r;
}
function pug_style(r) {
if (!r) return "";
if ("object" == typeof r) {
var t = "";
for (var e in r) pug_has_own_property.call(r, e) && (t = t + e + ":" + r[e] + ";");
return t;
}
return r += "", ";" !== r[r.length - 1] ? r + ";" : r;
}
function template(locals) {
var pug_html = "", pug_mixins = {}, pug_interp;
var id = 5;
function answer() {
return 42;
}
pug_html = pug_html + "<a" + (' class="button"' + pug_attr("href", "/user/" + id, true, false)) + "></a><a" + (' class="button"' + pug_attr("href", "/user/" + id, true, false)) + "></a><meta" + (' key="answer"' + pug_attr("value", answer(), true, false)) + '/><a class="class1 class2"></a><a class="tag-class class1 class2"></a><a' + (' class="button"' + pug_attr("href", "/user/" + id, true, false)) + "></a><a" + (' class="button"' + pug_attr("href", "/user/" + id, true, false)) + "></a><meta" + (' key="answer"' + pug_attr("value", answer(), true, false)) + '/><a class="class1 class2"></a><a class="tag-class class1 class2"></a><div' + pug_attrs(pug_merge([ {
id: pug_escape(id)
}, {
foo: "bar"
} ]), false) + "></div>";
var bar = null;
pug_html = pug_html + "<div" + pug_attrs(pug_merge([ {
foo: null,
bar: pug_escape(bar)
}, {
baz: "baz"
} ]), false) + "></div>";
return pug_html;
}

6
node_modules/pug/test/output/attrs.unescaped.html generated vendored Normal file
View File

@@ -0,0 +1,6 @@
<script type="text/x-template">
<div id="user-<%= user.id %>">
<h1><%= user.title %></h1>
</div>
</script>

5
node_modules/pug/test/output/attrs.unescaped.js generated vendored Normal file
View File

@@ -0,0 +1,5 @@
function template(locals) {
var pug_html = "", pug_mixins = {}, pug_interp;
pug_html = pug_html + '<script type="text/x-template"><div id="user-<%= user.id %>"><h1><%= user.title %></h1></div></script>';
return pug_html;
}

6
node_modules/pug/test/output/basic.html generated vendored Normal file
View File

@@ -0,0 +1,6 @@
<html>
<body>
<h1>Title</h1>
</body>
</html>

5
node_modules/pug/test/output/basic.js generated vendored Normal file
View File

@@ -0,0 +1,5 @@
function template(locals) {
var pug_html = "", pug_mixins = {}, pug_interp;
pug_html = pug_html + "<html><body><h1>Title</h1></body></html>";
return pug_html;
}

6
node_modules/pug/test/output/blanks.html generated vendored Normal file
View File

@@ -0,0 +1,6 @@
<ul>
<li>foo</li>
<li>bar</li>
<li>baz</li>
</ul>

5
node_modules/pug/test/output/blanks.js generated vendored Normal file
View File

@@ -0,0 +1,5 @@
function template(locals) {
var pug_html = "", pug_mixins = {}, pug_interp;
pug_html = pug_html + "<ul><li>foo</li><li>bar</li><li>baz</li></ul>";
return pug_html;
}

7
node_modules/pug/test/output/block-code.html generated vendored Normal file
View File

@@ -0,0 +1,7 @@
<li>Uno</li>
<li>Dos</li>
<li>Tres</li>
<li>Cuatro</li>
<li>Cinco</li>
<li>Seis</li>

58
node_modules/pug/test/output/block-code.js generated vendored Normal file
View File

@@ -0,0 +1,58 @@
function pug_escape(e) {
var a = "" + e, t = pug_match_html.exec(a);
if (!t) return e;
var r, c, n, s = "";
for (r = t.index, c = 0; r < a.length; r++) {
switch (a.charCodeAt(r)) {
case 34:
n = "&quot;";
break;
case 38:
n = "&amp;";
break;
case 60:
n = "&lt;";
break;
case 62:
n = "&gt;";
break;
default:
continue;
}
c !== r && (s += a.substring(c, r)), c = r + 1, s += n;
}
return c !== r ? s + a.substring(c, r) : s;
}
var pug_match_html = /["&<>]/;
function template(locals) {
var pug_html = "", pug_mixins = {}, pug_interp;
var locals_for_with = locals || {};
(function(list, string) {
list = [ "uno", "dos", "tres", "cuatro", "cinco", "seis" ];
(function() {
var $$obj = list;
if ("number" == typeof $$obj.length) {
for (var pug_index0 = 0, $$l = $$obj.length; pug_index0 < $$l; pug_index0++) {
var item = $$obj[pug_index0];
string = item.charAt(0).toUpperCase() + item.slice(1);
pug_html = pug_html + "<li>" + pug_escape(null == (pug_interp = string) ? "" : pug_interp) + "</li>";
}
} else {
var $$l = 0;
for (var pug_index0 in $$obj) {
$$l++;
var item = $$obj[pug_index0];
string = item.charAt(0).toUpperCase() + item.slice(1);
pug_html = pug_html + "<li>" + pug_escape(null == (pug_interp = string) ? "" : pug_interp) + "</li>";
}
}
}).call(this);
}).call(this, "list" in locals_for_with ? locals_for_with.list : typeof list !== "undefined" ? list : undefined, "string" in locals_for_with ? locals_for_with.string : typeof string !== "undefined" ? string : undefined);
return pug_html;
}

6
node_modules/pug/test/output/block-expansion.html generated vendored Normal file
View File

@@ -0,0 +1,6 @@
<ul>
<li><a href="#">foo</a></li>
<li><a href="#">bar</a></li>
</ul>
<p>baz</p>

5
node_modules/pug/test/output/block-expansion.js generated vendored Normal file
View File

@@ -0,0 +1,5 @@
function template(locals) {
var pug_html = "", pug_mixins = {}, pug_interp;
pug_html = pug_html + '<ul><li><a href="#">foo</a></li><li><a href="#">bar</a></li></ul><p>baz</p>';
return pug_html;
}

View File

@@ -0,0 +1,8 @@
<ul>
<li class="list-item">
<div class="foo">
<div id="bar">baz</div>
</div>
</li>
</ul>

View File

@@ -0,0 +1,5 @@
function template(locals) {
var pug_html = "", pug_mixins = {}, pug_interp;
pug_html = pug_html + '<ul><li class="list-item"><div class="foo"><div id="bar">baz</div></div></li></ul>';
return pug_html;
}

5
node_modules/pug/test/output/blockquote.html generated vendored Normal file
View File

@@ -0,0 +1,5 @@
<figure>
<blockquote>Try to define yourself by what you do, and you&#8217;ll burnout every time. You are. That is enough. I rest in that.</blockquote>
<figcaption>from @thefray at 1:43pm on May 10</figcaption>
</figure>

5
node_modules/pug/test/output/blockquote.js generated vendored Normal file
View File

@@ -0,0 +1,5 @@
function template(locals) {
var pug_html = "", pug_mixins = {}, pug_interp;
pug_html = pug_html + "<figure><blockquote>Try to define yourself by what you do, and you&#8217;ll burnout every time. You are. That is enough. I rest in that.</blockquote><figcaption>from @thefray at 1:43pm on May 10</figcaption></figure>";
return pug_html;
}

9
node_modules/pug/test/output/blocks-in-blocks.html generated vendored Normal file
View File

@@ -0,0 +1,9 @@
<!DOCTYPE html>
<html>
<head>
<title>Default title</title>
</head>
<body>
<h1>Page 2</h1>
</body>
</html>

5
node_modules/pug/test/output/blocks-in-blocks.js generated vendored Normal file
View File

@@ -0,0 +1,5 @@
function template(locals) {
var pug_html = "", pug_mixins = {}, pug_interp;
pug_html = pug_html + "<!DOCTYPE html><html><head><title>Default title</title></head><body><h1>Page 2</h1></body></html>";
return pug_html;
}

2
node_modules/pug/test/output/blocks-in-if.html generated vendored Normal file
View File

@@ -0,0 +1,2 @@
<p>ajax contents</p>

10
node_modules/pug/test/output/blocks-in-if.js generated vendored Normal file
View File

@@ -0,0 +1,10 @@
function template(locals) {
var pug_html = "", pug_mixins = {}, pug_interp;
var ajax = true;
if (ajax) {
pug_html = pug_html + "<p>ajax contents</p>";
} else {
pug_html = pug_html + '<!DOCTYPE html><html><head><meta charset="utf8"><title>sample</title><body><p>all contetns</p></body></head></html>';
}
return pug_html;
}

6
node_modules/pug/test/output/case-blocks.html generated vendored Normal file
View File

@@ -0,0 +1,6 @@
<html>
<body>
<p>you have a friend</p>
</body>
</html>

52
node_modules/pug/test/output/case-blocks.js generated vendored Normal file
View File

@@ -0,0 +1,52 @@
function pug_escape(e) {
var a = "" + e, t = pug_match_html.exec(a);
if (!t) return e;
var r, c, n, s = "";
for (r = t.index, c = 0; r < a.length; r++) {
switch (a.charCodeAt(r)) {
case 34:
n = "&quot;";
break;
case 38:
n = "&amp;";
break;
case 60:
n = "&lt;";
break;
case 62:
n = "&gt;";
break;
default:
continue;
}
c !== r && (s += a.substring(c, r)), c = r + 1, s += n;
}
return c !== r ? s + a.substring(c, r) : s;
}
var pug_match_html = /["&<>]/;
function template(locals) {
var pug_html = "", pug_mixins = {}, pug_interp;
pug_html = pug_html + "<html><body>";
var friends = 1;
switch (friends) {
case 0:
pug_html = pug_html + "<p>you have no friends</p>";
break;
case 1:
pug_html = pug_html + "<p>you have a friend</p>";
break;
default:
pug_html = pug_html + "<p>you have " + pug_escape(null == (pug_interp = friends) ? "" : pug_interp) + " friends</p>";
break;
}
pug_html = pug_html + "</body></html>";
return pug_html;
}

8
node_modules/pug/test/output/case.html generated vendored Normal file
View File

@@ -0,0 +1,8 @@
<html>
<body>
<p>you have a friend</p>
<p>you have very few friends</p>
<p>Friend is a string</p>
</body>
</html>

75
node_modules/pug/test/output/case.js generated vendored Normal file
View File

@@ -0,0 +1,75 @@
function pug_escape(e) {
var a = "" + e, t = pug_match_html.exec(a);
if (!t) return e;
var r, c, n, s = "";
for (r = t.index, c = 0; r < a.length; r++) {
switch (a.charCodeAt(r)) {
case 34:
n = "&quot;";
break;
case 38:
n = "&amp;";
break;
case 60:
n = "&lt;";
break;
case 62:
n = "&gt;";
break;
default:
continue;
}
c !== r && (s += a.substring(c, r)), c = r + 1, s += n;
}
return c !== r ? s + a.substring(c, r) : s;
}
var pug_match_html = /["&<>]/;
function template(locals) {
var pug_html = "", pug_mixins = {}, pug_interp;
pug_html = pug_html + "<html><body>";
var friends = 1;
switch (friends) {
case 0:
pug_html = pug_html + "<p>you have no friends</p>";
break;
case 1:
pug_html = pug_html + "<p>you have a friend</p>";
break;
default:
pug_html = pug_html + "<p>you have " + pug_escape(null == (pug_interp = friends) ? "" : pug_interp) + " friends</p>";
break;
}
var friends = 0;
switch (friends) {
case 0:
case 1:
pug_html = pug_html + "<p>you have very few friends</p>";
break;
default:
pug_html = pug_html + "<p>you have " + pug_escape(null == (pug_interp = friends) ? "" : pug_interp) + " friends</p>";
break;
}
var friend = "Tim:G";
switch (friend) {
case "Tim:G":
pug_html = pug_html + "<p>Friend is a string</p>";
break;
case {
tim: "g"
}:
pug_html = pug_html + "<p>Friend is an object</p>";
break;
}
pug_html = pug_html + "</body></html>";
return pug_html;
}

1
node_modules/pug/test/output/classes-empty.html generated vendored Normal file
View File

@@ -0,0 +1 @@
<a></a><a></a><a></a>

62
node_modules/pug/test/output/classes-empty.js generated vendored Normal file
View File

@@ -0,0 +1,62 @@
function pug_attr(t, e, n, f) {
return !1 !== e && null != e && (e || "class" !== t && "style" !== t) ? !0 === e ? " " + (f ? t : t + '="' + t + '"') : ("function" == typeof e.toJSON && (e = e.toJSON()),
"string" == typeof e || (e = JSON.stringify(e), n || -1 === e.indexOf('"')) ? (n && (e = pug_escape(e)),
" " + t + '="' + e + '"') : " " + t + "='" + e.replace(/'/g, "&#39;") + "'") : "";
}
function pug_classes(s, r) {
return Array.isArray(s) ? pug_classes_array(s, r) : s && "object" == typeof s ? pug_classes_object(s) : s || "";
}
function pug_classes_array(r, a) {
for (var s, e = "", u = "", c = Array.isArray(a), g = 0; g < r.length; g++) (s = pug_classes(r[g])) && (c && a[g] && (s = pug_escape(s)),
e = e + u + s, u = " ");
return e;
}
function pug_classes_object(r) {
var a = "", n = "";
for (var o in r) o && r[o] && pug_has_own_property.call(r, o) && (a = a + n + o,
n = " ");
return a;
}
function pug_escape(e) {
var a = "" + e, t = pug_match_html.exec(a);
if (!t) return e;
var r, c, n, s = "";
for (r = t.index, c = 0; r < a.length; r++) {
switch (a.charCodeAt(r)) {
case 34:
n = "&quot;";
break;
case 38:
n = "&amp;";
break;
case 60:
n = "&lt;";
break;
case 62:
n = "&gt;";
break;
default:
continue;
}
c !== r && (s += a.substring(c, r)), c = r + 1, s += n;
}
return c !== r ? s + a.substring(c, r) : s;
}
var pug_has_own_property = Object.prototype.hasOwnProperty;
var pug_match_html = /["&<>]/;
function template(locals) {
var pug_html = "", pug_mixins = {}, pug_interp;
pug_html = pug_html + "<a></a><a></a><a" + pug_attr("class", pug_classes([ undefined ], [ true ]), false, false) + "></a>";
return pug_html;
}

1
node_modules/pug/test/output/classes.html generated vendored Normal file
View File

@@ -0,0 +1 @@
<a class="foo bar baz"></a><a class="foo bar baz"></a><a class="foo-bar_baz"></a><a class="foo baz"></a>

5
node_modules/pug/test/output/classes.js generated vendored Normal file
View File

@@ -0,0 +1,5 @@
function template(locals) {
var pug_html = "", pug_mixins = {}, pug_interp;
pug_html = pug_html + '<a class="foo bar baz"></a><a class="foo bar baz"></a><a class="foo-bar_baz"></a><a class="foo baz"></a>';
return pug_html;
}

12
node_modules/pug/test/output/code.conditionals.html generated vendored Normal file
View File

@@ -0,0 +1,12 @@
<p>foo</p>
<p>foo</p>
<p>foo</p>
<p>bar</p>
<p>baz</p>
<p>bar</p>
<p>yay</p>
<div class="bar"></div>
<div class="bar"></div>
<div class="bing"></div>
<div class="foo"></div>

47
node_modules/pug/test/output/code.conditionals.js generated vendored Normal file
View File

@@ -0,0 +1,47 @@
function template(locals) {
var pug_html = "", pug_mixins = {}, pug_interp;
if (true) {
pug_html = pug_html + "<p>foo</p>";
} else {
pug_html = pug_html + "<p>bar</p>";
}
if (true) {
{
pug_html = pug_html + "<p>foo</p>";
}
} else {
{
pug_html = pug_html + "<p>bar</p>";
}
}
if (true) {
pug_html = pug_html + "<p>foo</p><p>bar</p><p>baz</p>";
} else {
pug_html = pug_html + "<p>bar</p>";
}
if (!true) {
pug_html = pug_html + "<p>foo</p>";
} else {
pug_html = pug_html + "<p>bar</p>";
}
if ("nested") {
if ("works") {
pug_html = pug_html + "<p>yay</p>";
}
}
if (false) {} else {
pug_html = pug_html + '<div class="bar"></div>';
}
if (true) {
pug_html = pug_html + '<div class="bar"></div>';
}
pug_html = pug_html + '<div class="bing"></div>';
if (false) {
pug_html = pug_html + '<div class="bing"></div>';
} else if (false) {
pug_html = pug_html + '<div class="bar"></div>';
} else {
pug_html = pug_html + '<div class="foo"></div>';
}
return pug_html;
}

3
node_modules/pug/test/output/code.escape.html generated vendored Normal file
View File

@@ -0,0 +1,3 @@
<p>&lt;script&gt;</p>
<p><script></p>

37
node_modules/pug/test/output/code.escape.js generated vendored Normal file
View File

@@ -0,0 +1,37 @@
function pug_escape(e) {
var a = "" + e, t = pug_match_html.exec(a);
if (!t) return e;
var r, c, n, s = "";
for (r = t.index, c = 0; r < a.length; r++) {
switch (a.charCodeAt(r)) {
case 34:
n = "&quot;";
break;
case 38:
n = "&amp;";
break;
case 60:
n = "&lt;";
break;
case 62:
n = "&gt;";
break;
default:
continue;
}
c !== r && (s += a.substring(c, r)), c = r + 1, s += n;
}
return c !== r ? s + a.substring(c, r) : s;
}
var pug_match_html = /["&<>]/;
function template(locals) {
var pug_html = "", pug_mixins = {}, pug_interp;
pug_html = pug_html + "<p>" + pug_escape(null == (pug_interp = "<script>") ? "" : pug_interp) + "</p><p>" + (null == (pug_interp = "<script>") ? "" : pug_interp) + "</p>";
return pug_html;
}

11
node_modules/pug/test/output/code.html generated vendored Normal file
View File

@@ -0,0 +1,11 @@
<p></p>
<p></p>
<p></p>
<p>0</p>
<p>false</p>
<p></p>
<p></p>
<p foo=""></p>
<p foo="0"></p>
<p></p>

37
node_modules/pug/test/output/code.iteration.html generated vendored Normal file
View File

@@ -0,0 +1,37 @@
<ul>
<li>1</li>
<li>2</li>
<li>3</li>
</ul>
<ul>
<li class="item-0">1</li>
<li class="item-1">2</li>
<li class="item-2">3</li>
</ul>
<ul>
<li>1</li>
<li>2</li>
<li>3</li>
</ul>
<ul>
<li>1</li>
<li>2</li>
<li>3</li>
</ul>
<ul>
<li>1: a</li>
<li>2: a</li>
<li>3: a</li>
<li>1: b</li>
<li>2: b</li>
<li>3: b</li>
<li>1: c</li>
<li>2: c</li>
<li>3: c</li>
</ul>
<ul>
<li>1</li>
<li>2</li>
<li>3</li>
</ul>

194
node_modules/pug/test/output/code.iteration.js generated vendored Normal file
View File

@@ -0,0 +1,194 @@
function pug_attr(t, e, n, f) {
return !1 !== e && null != e && (e || "class" !== t && "style" !== t) ? !0 === e ? " " + (f ? t : t + '="' + t + '"') : ("function" == typeof e.toJSON && (e = e.toJSON()),
"string" == typeof e || (e = JSON.stringify(e), n || -1 === e.indexOf('"')) ? (n && (e = pug_escape(e)),
" " + t + '="' + e + '"') : " " + t + "='" + e.replace(/'/g, "&#39;") + "'") : "";
}
function pug_classes(s, r) {
return Array.isArray(s) ? pug_classes_array(s, r) : s && "object" == typeof s ? pug_classes_object(s) : s || "";
}
function pug_classes_array(r, a) {
for (var s, e = "", u = "", c = Array.isArray(a), g = 0; g < r.length; g++) (s = pug_classes(r[g])) && (c && a[g] && (s = pug_escape(s)),
e = e + u + s, u = " ");
return e;
}
function pug_classes_object(r) {
var a = "", n = "";
for (var o in r) o && r[o] && pug_has_own_property.call(r, o) && (a = a + n + o,
n = " ");
return a;
}
function pug_escape(e) {
var a = "" + e, t = pug_match_html.exec(a);
if (!t) return e;
var r, c, n, s = "";
for (r = t.index, c = 0; r < a.length; r++) {
switch (a.charCodeAt(r)) {
case 34:
n = "&quot;";
break;
case 38:
n = "&amp;";
break;
case 60:
n = "&lt;";
break;
case 62:
n = "&gt;";
break;
default:
continue;
}
c !== r && (s += a.substring(c, r)), c = r + 1, s += n;
}
return c !== r ? s + a.substring(c, r) : s;
}
var pug_has_own_property = Object.prototype.hasOwnProperty;
var pug_match_html = /["&<>]/;
function template(locals) {
var pug_html = "", pug_mixins = {}, pug_interp;
var items = [ 1, 2, 3 ];
pug_html = pug_html + "<ul>";
items.forEach(function(item) {
{
pug_html = pug_html + "<li>" + pug_escape(null == (pug_interp = item) ? "" : pug_interp) + "</li>";
}
});
pug_html = pug_html + "</ul>";
var items = [ 1, 2, 3 ];
pug_html = pug_html + "<ul>";
(function() {
var $$obj = items;
if ("number" == typeof $$obj.length) {
for (var i = 0, $$l = $$obj.length; i < $$l; i++) {
var item = $$obj[i];
pug_html = pug_html + "<li" + pug_attr("class", pug_classes([ "item-" + i ], [ true ]), false, false) + ">" + pug_escape(null == (pug_interp = item) ? "" : pug_interp) + "</li>";
}
} else {
var $$l = 0;
for (var i in $$obj) {
$$l++;
var item = $$obj[i];
pug_html = pug_html + "<li" + pug_attr("class", pug_classes([ "item-" + i ], [ true ]), false, false) + ">" + pug_escape(null == (pug_interp = item) ? "" : pug_interp) + "</li>";
}
}
}).call(this);
pug_html = pug_html + "</ul><ul>";
(function() {
var $$obj = items;
if ("number" == typeof $$obj.length) {
for (var i = 0, $$l = $$obj.length; i < $$l; i++) {
var item = $$obj[i];
pug_html = pug_html + "<li>" + pug_escape(null == (pug_interp = item) ? "" : pug_interp) + "</li>";
}
} else {
var $$l = 0;
for (var i in $$obj) {
$$l++;
var item = $$obj[i];
pug_html = pug_html + "<li>" + pug_escape(null == (pug_interp = item) ? "" : pug_interp) + "</li>";
}
}
}).call(this);
pug_html = pug_html + "</ul><ul>";
(function() {
var $$obj = items;
if ("number" == typeof $$obj.length) {
for (var pug_index2 = 0, $$l = $$obj.length; pug_index2 < $$l; pug_index2++) {
var $item = $$obj[pug_index2];
pug_html = pug_html + "<li>" + pug_escape(null == (pug_interp = $item) ? "" : pug_interp) + "</li>";
}
} else {
var $$l = 0;
for (var pug_index2 in $$obj) {
$$l++;
var $item = $$obj[pug_index2];
pug_html = pug_html + "<li>" + pug_escape(null == (pug_interp = $item) ? "" : pug_interp) + "</li>";
}
}
}).call(this);
pug_html = pug_html + "</ul>";
var nums = [ 1, 2, 3 ];
var letters = [ "a", "b", "c" ];
pug_html = pug_html + "<ul>";
(function() {
var $$obj = letters;
if ("number" == typeof $$obj.length) {
for (var pug_index3 = 0, $$l = $$obj.length; pug_index3 < $$l; pug_index3++) {
var l = $$obj[pug_index3];
(function() {
var $$obj = nums;
if ("number" == typeof $$obj.length) {
for (var pug_index4 = 0, $$l = $$obj.length; pug_index4 < $$l; pug_index4++) {
var n = $$obj[pug_index4];
pug_html = pug_html + "<li>" + pug_escape(null == (pug_interp = n) ? "" : pug_interp) + ": " + pug_escape(null == (pug_interp = l) ? "" : pug_interp) + "</li>";
}
} else {
var $$l = 0;
for (var pug_index4 in $$obj) {
$$l++;
var n = $$obj[pug_index4];
pug_html = pug_html + "<li>" + pug_escape(null == (pug_interp = n) ? "" : pug_interp) + ": " + pug_escape(null == (pug_interp = l) ? "" : pug_interp) + "</li>";
}
}
}).call(this);
}
} else {
var $$l = 0;
for (var pug_index3 in $$obj) {
$$l++;
var l = $$obj[pug_index3];
(function() {
var $$obj = nums;
if ("number" == typeof $$obj.length) {
for (var pug_index5 = 0, $$l = $$obj.length; pug_index5 < $$l; pug_index5++) {
var n = $$obj[pug_index5];
pug_html = pug_html + "<li>" + pug_escape(null == (pug_interp = n) ? "" : pug_interp) + ": " + pug_escape(null == (pug_interp = l) ? "" : pug_interp) + "</li>";
}
} else {
var $$l = 0;
for (var pug_index5 in $$obj) {
$$l++;
var n = $$obj[pug_index5];
pug_html = pug_html + "<li>" + pug_escape(null == (pug_interp = n) ? "" : pug_interp) + ": " + pug_escape(null == (pug_interp = l) ? "" : pug_interp) + "</li>";
}
}
}).call(this);
}
}
}).call(this);
pug_html = pug_html + "</ul>";
var count = 1;
var counter = function() {
return [ count++, count++, count++ ];
};
pug_html = pug_html + "<ul>";
(function() {
var $$obj = counter();
if ("number" == typeof $$obj.length) {
for (var pug_index6 = 0, $$l = $$obj.length; pug_index6 < $$l; pug_index6++) {
var n = $$obj[pug_index6];
pug_html = pug_html + "<li>" + pug_escape(null == (pug_interp = n) ? "" : pug_interp) + "</li>";
}
} else {
var $$l = 0;
for (var pug_index6 in $$obj) {
$$l++;
var n = $$obj[pug_index6];
pug_html = pug_html + "<li>" + pug_escape(null == (pug_interp = n) ? "" : pug_interp) + "</li>";
}
}
}).call(this);
pug_html = pug_html + "</ul>";
return pug_html;
}

43
node_modules/pug/test/output/code.js generated vendored Normal file
View File

@@ -0,0 +1,43 @@
function pug_attr(t, e, n, f) {
return !1 !== e && null != e && (e || "class" !== t && "style" !== t) ? !0 === e ? " " + (f ? t : t + '="' + t + '"') : ("function" == typeof e.toJSON && (e = e.toJSON()),
"string" == typeof e || (e = JSON.stringify(e), n || -1 === e.indexOf('"')) ? (n && (e = pug_escape(e)),
" " + t + '="' + e + '"') : " " + t + "='" + e.replace(/'/g, "&#39;") + "'") : "";
}
function pug_escape(e) {
var a = "" + e, t = pug_match_html.exec(a);
if (!t) return e;
var r, c, n, s = "";
for (r = t.index, c = 0; r < a.length; r++) {
switch (a.charCodeAt(r)) {
case 34:
n = "&quot;";
break;
case 38:
n = "&amp;";
break;
case 60:
n = "&lt;";
break;
case 62:
n = "&gt;";
break;
default:
continue;
}
c !== r && (s += a.substring(c, r)), c = r + 1, s += n;
}
return c !== r ? s + a.substring(c, r) : s;
}
var pug_match_html = /["&<>]/;
function template(locals) {
var pug_html = "", pug_mixins = {}, pug_interp;
pug_html = pug_html + "<p>" + pug_escape(null == (pug_interp = null) ? "" : pug_interp) + "</p><p>" + pug_escape(null == (pug_interp = undefined) ? "" : pug_interp) + "</p><p>" + pug_escape(null == (pug_interp = "") ? "" : pug_interp) + "</p><p>" + pug_escape(null == (pug_interp = 0) ? "" : pug_interp) + "</p><p>" + pug_escape(null == (pug_interp = false) ? "" : pug_interp) + "</p><p></p><p" + pug_attr("foo", undefined, true, false) + '></p><p foo=""></p><p foo="0"></p><p></p>';
return pug_html;
}

6
node_modules/pug/test/output/comments-in-case.html generated vendored Normal file
View File

@@ -0,0 +1,6 @@
<!DOCTYPE html>
<html>
<body>
<p>It's this!</p>
</body>
</html>

16
node_modules/pug/test/output/comments-in-case.js generated vendored Normal file
View File

@@ -0,0 +1,16 @@
function template(locals) {
var pug_html = "", pug_mixins = {}, pug_interp;
pug_html = pug_html + "<!DOCTYPE html><html><body>";
var s = "this";
switch (s) {
case "this":
pug_html = pug_html + "<p>It's this!</p>";
break;
case "that":
pug_html = pug_html + "<p>It's that!</p>";
break;
}
pug_html = pug_html + "</body></html>";
return pug_html;
}

32
node_modules/pug/test/output/comments.html generated vendored Normal file
View File

@@ -0,0 +1,32 @@
<!-- foo-->
<ul>
<!-- bar-->
<li>one</li>
<!-- baz-->
<li>two</li>
</ul>
<!--
ul
li foo
-->
<!-- block
// inline follow
li three
-->
<!-- block
// inline followed by tags
ul
li four
-->
<!--if IE lt 9
// inline
script(src='/lame.js')
// end-inline
-->
<p>five</p>
<div class="foo">// not a comment</div>

5
node_modules/pug/test/output/comments.js generated vendored Normal file
View File

@@ -0,0 +1,5 @@
function template(locals) {
var pug_html = "", pug_mixins = {}, pug_interp;
pug_html = pug_html + "<!-- foo--><ul><!-- bar--><li>one</li><!-- baz--><li>two</li></ul><!--ul\n li foo\n--><!-- block// inline follow\nli three\n--><!-- block// inline followed by tags\nul\n li four\n--><!--if IE lt 9// inline\nscript(src='/lame.js')\n// end-inline\n--><p>five</p><div class=\"foo\">// not a comment</div>";
return pug_html;
}

0
node_modules/pug/test/output/comments.source.html generated vendored Normal file
View File

4
node_modules/pug/test/output/comments.source.js generated vendored Normal file
View File

@@ -0,0 +1,4 @@
function template(locals) {
var pug_html = "", pug_mixins = {}, pug_interp;
return pug_html;
}

1
node_modules/pug/test/output/doctype.custom.html generated vendored Normal file
View File

@@ -0,0 +1 @@
<!DOCTYPE custom stuff>

5
node_modules/pug/test/output/doctype.custom.js generated vendored Normal file
View File

@@ -0,0 +1,5 @@
function template(locals) {
var pug_html = "", pug_mixins = {}, pug_interp;
pug_html = pug_html + "<!DOCTYPE custom stuff>";
return pug_html;
}

6
node_modules/pug/test/output/doctype.default.html generated vendored Normal file
View File

@@ -0,0 +1,6 @@
<!DOCTYPE html>
<html>
<body>
<h1>Title</h1>
</body>
</html>

5
node_modules/pug/test/output/doctype.default.js generated vendored Normal file
View File

@@ -0,0 +1,5 @@
function template(locals) {
var pug_html = "", pug_mixins = {}, pug_interp;
pug_html = pug_html + "<!DOCTYPE html><html><body><h1>Title</h1></body></html>";
return pug_html;
}

1
node_modules/pug/test/output/doctype.keyword.html generated vendored Normal file
View File

@@ -0,0 +1 @@
<!DOCTYPE html>

5
node_modules/pug/test/output/doctype.keyword.js generated vendored Normal file
View File

@@ -0,0 +1,5 @@
function template(locals) {
var pug_html = "", pug_mixins = {}, pug_interp;
pug_html = pug_html + "<!DOCTYPE html>";
return pug_html;
}

18
node_modules/pug/test/output/each.else.html generated vendored Normal file
View File

@@ -0,0 +1,18 @@
<ul>
<li>no users!</li>
</ul>
<ul>
<li>tobi</li>
<li>loki</li>
</ul>
<ul>
<li>name: tobi</li>
<li>age: 10</li>
</ul>
<ul>
<li>user has no details!</li>
</ul>
<ul>
<li>name: tobi</li>
</ul>

180
node_modules/pug/test/output/each.else.js generated vendored Normal file
View File

@@ -0,0 +1,180 @@
function pug_escape(e) {
var a = "" + e, t = pug_match_html.exec(a);
if (!t) return e;
var r, c, n, s = "";
for (r = t.index, c = 0; r < a.length; r++) {
switch (a.charCodeAt(r)) {
case 34:
n = "&quot;";
break;
case 38:
n = "&amp;";
break;
case 60:
n = "&lt;";
break;
case 62:
n = "&gt;";
break;
default:
continue;
}
c !== r && (s += a.substring(c, r)), c = r + 1, s += n;
}
return c !== r ? s + a.substring(c, r) : s;
}
var pug_match_html = /["&<>]/;
function template(locals) {
var pug_html = "", pug_mixins = {}, pug_interp;
var locals_for_with = locals || {};
(function(Object, val) {
var users = [];
pug_html = pug_html + "<ul>";
(function() {
var $$obj = users;
if ("number" == typeof $$obj.length) {
if ($$obj.length) {
for (var pug_index0 = 0, $$l = $$obj.length; pug_index0 < $$l; pug_index0++) {
var user = $$obj[pug_index0];
pug_html = pug_html + "<li>" + pug_escape(null == (pug_interp = user.name) ? "" : pug_interp) + "</li>";
}
} else {
pug_html = pug_html + "<li>no users!</li>";
}
} else {
var $$l = 0;
for (var pug_index0 in $$obj) {
$$l++;
var user = $$obj[pug_index0];
pug_html = pug_html + "<li>" + pug_escape(null == (pug_interp = user.name) ? "" : pug_interp) + "</li>";
}
if ($$l === 0) {
pug_html = pug_html + "<li>no users!</li>";
}
}
}).call(this);
pug_html = pug_html + "</ul>";
var users = [ {
name: "tobi",
friends: [ "loki" ]
}, {
name: "loki"
} ];
if (users) {
pug_html = pug_html + "<ul>";
(function() {
var $$obj = users;
if ("number" == typeof $$obj.length) {
if ($$obj.length) {
for (var pug_index1 = 0, $$l = $$obj.length; pug_index1 < $$l; pug_index1++) {
var user = $$obj[pug_index1];
pug_html = pug_html + "<li>" + pug_escape(null == (pug_interp = user.name) ? "" : pug_interp) + "</li>";
}
} else {
pug_html = pug_html + "<li>no users!</li>";
}
} else {
var $$l = 0;
for (var pug_index1 in $$obj) {
$$l++;
var user = $$obj[pug_index1];
pug_html = pug_html + "<li>" + pug_escape(null == (pug_interp = user.name) ? "" : pug_interp) + "</li>";
}
if ($$l === 0) {
pug_html = pug_html + "<li>no users!</li>";
}
}
}).call(this);
pug_html = pug_html + "</ul>";
}
var user = {
name: "tobi",
age: 10
};
pug_html = pug_html + "<ul>";
(function() {
var $$obj = user;
if ("number" == typeof $$obj.length) {
if ($$obj.length) {
for (var key = 0, $$l = $$obj.length; key < $$l; key++) {
var val = $$obj[key];
pug_html = pug_html + "<li>" + pug_escape(null == (pug_interp = key) ? "" : pug_interp) + ": " + pug_escape(null == (pug_interp = val) ? "" : pug_interp) + "</li>";
}
} else {
pug_html = pug_html + "<li>user has no details!</li>";
}
} else {
var $$l = 0;
for (var key in $$obj) {
$$l++;
var val = $$obj[key];
pug_html = pug_html + "<li>" + pug_escape(null == (pug_interp = key) ? "" : pug_interp) + ": " + pug_escape(null == (pug_interp = val) ? "" : pug_interp) + "</li>";
}
if ($$l === 0) {
pug_html = pug_html + "<li>user has no details!</li>";
}
}
}).call(this);
pug_html = pug_html + "</ul>";
var user = {};
pug_html = pug_html + "<ul>";
(function() {
var $$obj = user;
if ("number" == typeof $$obj.length) {
if ($$obj.length) {
for (var key = 0, $$l = $$obj.length; key < $$l; key++) {
var prop = $$obj[key];
pug_html = pug_html + "<li>" + pug_escape(null == (pug_interp = key) ? "" : pug_interp) + ": " + pug_escape(null == (pug_interp = val) ? "" : pug_interp) + "</li>";
}
} else {
pug_html = pug_html + "<li>user has no details!</li>";
}
} else {
var $$l = 0;
for (var key in $$obj) {
$$l++;
var prop = $$obj[key];
pug_html = pug_html + "<li>" + pug_escape(null == (pug_interp = key) ? "" : pug_interp) + ": " + pug_escape(null == (pug_interp = val) ? "" : pug_interp) + "</li>";
}
if ($$l === 0) {
pug_html = pug_html + "<li>user has no details!</li>";
}
}
}).call(this);
pug_html = pug_html + "</ul>";
var user = Object.create(null);
user.name = "tobi";
pug_html = pug_html + "<ul>";
(function() {
var $$obj = user;
if ("number" == typeof $$obj.length) {
if ($$obj.length) {
for (var key = 0, $$l = $$obj.length; key < $$l; key++) {
var val = $$obj[key];
pug_html = pug_html + "<li>" + pug_escape(null == (pug_interp = key) ? "" : pug_interp) + ": " + pug_escape(null == (pug_interp = val) ? "" : pug_interp) + "</li>";
}
} else {
pug_html = pug_html + "<li>user has no details!</li>";
}
} else {
var $$l = 0;
for (var key in $$obj) {
$$l++;
var val = $$obj[key];
pug_html = pug_html + "<li>" + pug_escape(null == (pug_interp = key) ? "" : pug_interp) + ": " + pug_escape(null == (pug_interp = val) ? "" : pug_interp) + "</li>";
}
if ($$l === 0) {
pug_html = pug_html + "<li>user has no details!</li>";
}
}
}).call(this);
pug_html = pug_html + "</ul>";
}).call(this, "Object" in locals_for_with ? locals_for_with.Object : typeof Object !== "undefined" ? Object : undefined, "val" in locals_for_with ? locals_for_with.val : typeof val !== "undefined" ? val : undefined);
return pug_html;
}

2
node_modules/pug/test/output/escape-chars.html generated vendored Normal file
View File

@@ -0,0 +1,2 @@
<script>var re = /\d+/;</script>

5
node_modules/pug/test/output/escape-chars.js generated vendored Normal file
View File

@@ -0,0 +1,5 @@
function template(locals) {
var pug_html = "", pug_mixins = {}, pug_interp;
pug_html = pug_html + "<script>var re = /\\d+/;</script>";
return pug_html;
}

9
node_modules/pug/test/output/escape-test.html generated vendored Normal file
View File

@@ -0,0 +1,9 @@
<!DOCTYPE html>
<html>
<head>
<title>escape-test</title>
</head>
<body>
<textarea>&lt;param name=&quot;flashvars&quot; value=&quot;a=&amp;quot;value_a&amp;quot;&amp;b=&amp;quot;value_b&amp;quot;&amp;c=3&quot;/&gt;</textarea>
</body>
</html>

39
node_modules/pug/test/output/escape-test.js generated vendored Normal file
View File

@@ -0,0 +1,39 @@
function pug_escape(e) {
var a = "" + e, t = pug_match_html.exec(a);
if (!t) return e;
var r, c, n, s = "";
for (r = t.index, c = 0; r < a.length; r++) {
switch (a.charCodeAt(r)) {
case 34:
n = "&quot;";
break;
case 38:
n = "&amp;";
break;
case 60:
n = "&lt;";
break;
case 62:
n = "&gt;";
break;
default:
continue;
}
c !== r && (s += a.substring(c, r)), c = r + 1, s += n;
}
return c !== r ? s + a.substring(c, r) : s;
}
var pug_match_html = /["&<>]/;
function template(locals) {
var pug_html = "", pug_mixins = {}, pug_interp;
pug_html = pug_html + "<!DOCTYPE html><html><head><title>escape-test</title></head><body><textarea>";
var txt = '<param name="flashvars" value="a=&quot;value_a&quot;&b=&quot;value_b&quot;&c=3"/>';
pug_html = pug_html + pug_escape(null == (pug_interp = txt) ? "" : pug_interp) + "</textarea></body></html>";
return pug_html;
}

View File

@@ -0,0 +1,7 @@
<foo attr="&lt;%= bar %&gt;"></foo>
<foo class="&lt;%= bar %&gt;"></foo>
<foo attr="<%= bar %>"></foo>
<foo class="<%= bar %>"></foo>
<foo class="<%= bar %> lol rofl"></foo>
<foo class="<%= bar %> lol rofl <%= lmao %>"></foo>

View File

@@ -0,0 +1,5 @@
function template(locals) {
var pug_html = "", pug_mixins = {}, pug_interp;
pug_html = pug_html + '<foo attr="&lt;%= bar %&gt;"></foo><foo class="&lt;%= bar %&gt;"></foo><foo attr="<%= bar %>"></foo><foo class="<%= bar %>"></foo><foo class="<%= bar %> lol rofl"></foo><foo class="<%= bar %> lol rofl <%= lmao %>"></foo>';
return pug_html;
}

10
node_modules/pug/test/output/filter-in-include.html generated vendored Normal file
View File

@@ -0,0 +1,10 @@
<html>
<head>
<style type="text/css">body {
padding: 15px;
}
</style>
</head>
</html>

5
node_modules/pug/test/output/filter-in-include.js generated vendored Normal file
View File

@@ -0,0 +1,5 @@
function template(locals) {
var pug_html = "", pug_mixins = {}, pug_interp;
pug_html = pug_html + '<html><head><style type="text/css">body {\n padding: 15px;\n}\n</style></head></html>';
return pug_html;
}

4
node_modules/pug/test/output/filters-empty.html generated vendored Normal file
View File

@@ -0,0 +1,4 @@
<fb:users>
<fb:user age="2"><![CDATA[]]></fb:user>
</fb:users>

64
node_modules/pug/test/output/filters-empty.js generated vendored Normal file
View File

@@ -0,0 +1,64 @@
function pug_attr(t, e, n, f) {
return !1 !== e && null != e && (e || "class" !== t && "style" !== t) ? !0 === e ? " " + (f ? t : t + '="' + t + '"') : ("function" == typeof e.toJSON && (e = e.toJSON()),
"string" == typeof e || (e = JSON.stringify(e), n || -1 === e.indexOf('"')) ? (n && (e = pug_escape(e)),
" " + t + '="' + e + '"') : " " + t + "='" + e.replace(/'/g, "&#39;") + "'") : "";
}
function pug_escape(e) {
var a = "" + e, t = pug_match_html.exec(a);
if (!t) return e;
var r, c, n, s = "";
for (r = t.index, c = 0; r < a.length; r++) {
switch (a.charCodeAt(r)) {
case 34:
n = "&quot;";
break;
case 38:
n = "&amp;";
break;
case 60:
n = "&lt;";
break;
case 62:
n = "&gt;";
break;
default:
continue;
}
c !== r && (s += a.substring(c, r)), c = r + 1, s += n;
}
return c !== r ? s + a.substring(c, r) : s;
}
var pug_match_html = /["&<>]/;
function template(locals) {
var pug_html = "", pug_mixins = {}, pug_interp;
var users = [ {
name: "tobi",
age: 2
} ];
pug_html = pug_html + "<fb:users>";
(function() {
var $$obj = users;
if ("number" == typeof $$obj.length) {
for (var pug_index0 = 0, $$l = $$obj.length; pug_index0 < $$l; pug_index0++) {
var user = $$obj[pug_index0];
pug_html = pug_html + "<fb:user" + pug_attr("age", user.age, true, false) + "><![CDATA[]]></fb:user>";
}
} else {
var $$l = 0;
for (var pug_index0 in $$obj) {
$$l++;
var user = $$obj[pug_index0];
pug_html = pug_html + "<fb:user" + pug_attr("age", user.age, true, false) + "><![CDATA[]]></fb:user>";
}
}
}).call(this);
pug_html = pug_html + "</fb:users>";
return pug_html;
}

10
node_modules/pug/test/output/filters.coffeescript.html generated vendored Normal file
View File

@@ -0,0 +1,10 @@
<script type="text/javascript">
(function() {
var regexp;
regexp = /\n/;
}).call(this);
(function(){}).call(this);
</script>

5
node_modules/pug/test/output/filters.coffeescript.js generated vendored Normal file
View File

@@ -0,0 +1,5 @@
function template(locals) {
var pug_html = "", pug_mixins = {}, pug_interp;
pug_html = pug_html + '<script type="text/javascript">(function() {\n var regexp;\n\n regexp = /\\n/;\n\n}).call(this);\n(function(){}).call(this);</script>';
return pug_html;
}

8
node_modules/pug/test/output/filters.custom.html generated vendored Normal file
View File

@@ -0,0 +1,8 @@
<html>
<body>BEGINLine 1
Line 2
Line 4END
</body>
</html>

5
node_modules/pug/test/output/filters.custom.js generated vendored Normal file
View File

@@ -0,0 +1,5 @@
function template(locals) {
var pug_html = "", pug_mixins = {}, pug_interp;
pug_html = pug_html + "<html><body>BEGINLine 1\nLine 2\n\nLine 4END</body></html>";
return pug_html;
}

View File

@@ -0,0 +1,10 @@
<html>
<body>
<pre>BEGINhtml
body
pre
include:custom(opt='val' num=2) filters.include.custom.pug
END</pre>
</body>
</html>

View File

@@ -0,0 +1,5 @@
function template(locals) {
var pug_html = "", pug_mixins = {}, pug_interp;
pug_html = pug_html + "<html><body><pre>BEGINhtml\n body\n pre\n include:custom(opt='val' num=2) filters.include.custom.pug\nEND</pre></body></html>";
return pug_html;
}

20
node_modules/pug/test/output/filters.include.html generated vendored Normal file
View File

@@ -0,0 +1,20 @@
<html>
<body><p>Just <em>some</em> markdown <strong>tests</strong>.</p>
<p>With new line.</p>
<script>(function(){}).call(this);</script>
<script>(function() {
var math;
math = {
square: function(value) {
return value * value;
}
};
}).call(this);
</script>
</body>
</html>

5
node_modules/pug/test/output/filters.include.js generated vendored Normal file
View File

@@ -0,0 +1,5 @@
function template(locals) {
var pug_html = "", pug_mixins = {}, pug_interp;
pug_html = pug_html + "<html><body><p>Just <em>some</em> markdown <strong>tests</strong>.</p>\n<p>With new line.</p>\n<script>(function(){}).call(this);</script><script>(function() {\n var math;\n\n math = {\n square: function(value) {\n return value * value;\n }\n };\n\n}).call(this);\n</script></body></html>";
return pug_html;
}

3
node_modules/pug/test/output/filters.inline.html generated vendored Normal file
View File

@@ -0,0 +1,3 @@
<p>
before <![CDATA[inside]]> after</p>

5
node_modules/pug/test/output/filters.inline.js generated vendored Normal file
View File

@@ -0,0 +1,5 @@
function template(locals) {
var pug_html = "", pug_mixins = {}, pug_interp;
pug_html = pug_html + "<p>before <![CDATA[inside]]> after</p>";
return pug_html;
}

10
node_modules/pug/test/output/filters.less.html generated vendored Normal file
View File

@@ -0,0 +1,10 @@
<html>
<head>
<style type="text/css">body {
padding: 15px;
}
</style>
</head>
</html>

5
node_modules/pug/test/output/filters.less.js generated vendored Normal file
View File

@@ -0,0 +1,5 @@
function template(locals) {
var pug_html = "", pug_mixins = {}, pug_interp;
pug_html = pug_html + '<html><head><style type="text/css">body {\n padding: 15px;\n}\n</style></head></html>';
return pug_html;
}

7
node_modules/pug/test/output/filters.markdown.html generated vendored Normal file
View File

@@ -0,0 +1,7 @@
<html>
<body><p>This is <em>some</em> awesome <strong>markdown</strong>
whoop.</p>
</body>
</html>

5
node_modules/pug/test/output/filters.markdown.js generated vendored Normal file
View File

@@ -0,0 +1,5 @@
function template(locals) {
var pug_html = "", pug_mixins = {}, pug_interp;
pug_html = pug_html + "<html><body><p>This is <em>some</em> awesome <strong>markdown</strong>\nwhoop.</p>\n</body></html>";
return pug_html;
}

3
node_modules/pug/test/output/filters.nested.html generated vendored Normal file
View File

@@ -0,0 +1,3 @@
<script><![CDATA[!function(){console.log("test")}();]]></script>
<script><![CDATA[(function(){!function(){console.log("test")}()}).call(this);]]></script>

5
node_modules/pug/test/output/filters.nested.js generated vendored Normal file
View File

@@ -0,0 +1,5 @@
function template(locals) {
var pug_html = "", pug_mixins = {}, pug_interp;
pug_html = pug_html + '<script><![CDATA[!function(){console.log("test")}();]]></script><script><![CDATA[(function(){!function(){console.log("test")}()}).call(this);]]></script>';
return pug_html;
}

11
node_modules/pug/test/output/filters.stylus.html generated vendored Normal file
View File

@@ -0,0 +1,11 @@
<html>
<head>
<style type="text/css">body {
padding: 50px;
}
</style>
</head>
<body></body>
</html>

5
node_modules/pug/test/output/filters.stylus.js generated vendored Normal file
View File

@@ -0,0 +1,5 @@
function template(locals) {
var pug_html = "", pug_mixins = {}, pug_interp;
pug_html = pug_html + '<html><head><style type="text/css">body {\n padding: 50px;\n}\n</style></head><body></body></html>';
return pug_html;
}

9
node_modules/pug/test/output/html.html generated vendored Normal file
View File

@@ -0,0 +1,9 @@
<ul>
<li>foo</li>
<li>bar</li>
<li>baz</li>
</ul>
<!--build:js /js/app.min.js?v=1449104952939-->
<!--endbuild-->
<p>You can <em>embed</em> html as well.</p>
<p><strong>Even</strong> as the body of a block expansion.</p>

38
node_modules/pug/test/output/html.js generated vendored Normal file
View File

@@ -0,0 +1,38 @@
function pug_escape(e) {
var a = "" + e, t = pug_match_html.exec(a);
if (!t) return e;
var r, c, n, s = "";
for (r = t.index, c = 0; r < a.length; r++) {
switch (a.charCodeAt(r)) {
case 34:
n = "&quot;";
break;
case 38:
n = "&amp;";
break;
case 60:
n = "&lt;";
break;
case 62:
n = "&gt;";
break;
default:
continue;
}
c !== r && (s += a.substring(c, r)), c = r + 1, s += n;
}
return c !== r ? s + a.substring(c, r) : s;
}
var pug_match_html = /["&<>]/;
function template(locals) {
var pug_html = "", pug_mixins = {}, pug_interp;
var version = 1449104952939;
pug_html = pug_html + "<ul>\n<li>foo</li>\n<li>bar</li>\n<li>baz</li>\n</ul>\n<!--build:js /js/app.min.js?v=" + pug_escape(null == (pug_interp = version) ? "" : pug_interp) + "-->\n<!--endbuild--><p>You can <em>embed</em> html as well.</p><p><strong>Even</strong> as the body of a block expansion.</p>";
return pug_html;
}

4
node_modules/pug/test/output/html5.html generated vendored Normal file
View File

@@ -0,0 +1,4 @@
<!DOCTYPE html>
<input type="checkbox" checked>
<input type="checkbox" checked>
<input type="checkbox">

5
node_modules/pug/test/output/html5.js generated vendored Normal file
View File

@@ -0,0 +1,5 @@
function template(locals) {
var pug_html = "", pug_mixins = {}, pug_interp;
pug_html = pug_html + '<!DOCTYPE html><input type="checkbox" checked><input type="checkbox" checked><input type="checkbox">';
return pug_html;
}

View File

@@ -0,0 +1,9 @@
<html>
<head>
<title>My Application</title>
</head>
<body>
<h1>hello</h1>
</body>
</html>

View File

@@ -0,0 +1,5 @@
function template(locals) {
var pug_html = "", pug_mixins = {}, pug_interp;
pug_html = pug_html + "<html><head><title>My Application</title></head><body><h1>hello</h1></body></html>";
return pug_html;
}

View File

@@ -0,0 +1,3 @@
<div>test1</div>
<div>test2</div>

View File

@@ -0,0 +1,5 @@
function template(locals) {
var pug_html = "", pug_mixins = {}, pug_interp;
pug_html = pug_html + "<div>test1</div><div>test2</div>";
return pug_html;
}

View File

@@ -0,0 +1,9 @@
<html>
<head>
<title>My Application</title>
</head>
<body>
<h1>hello</h1>
</body>
</html>

View File

@@ -0,0 +1,5 @@
function template(locals) {
var pug_html = "", pug_mixins = {}, pug_interp;
pug_html = pug_html + "<html><head><title>My Application</title></head><body><h1>hello</h1></body></html>";
return pug_html;
}

View File

@@ -0,0 +1 @@
The message is ""

View File

@@ -0,0 +1,5 @@
function template(locals) {
var pug_html = "", pug_mixins = {}, pug_interp;
pug_html = pug_html + 'The message is ""';
return pug_html;
}

6
node_modules/pug/test/output/include-only-text.html generated vendored Normal file
View File

@@ -0,0 +1,6 @@
<html>
<body>
<p>The message is "<em>hello world</em>"</p>
</body>
</html>

5
node_modules/pug/test/output/include-only-text.js generated vendored Normal file
View File

@@ -0,0 +1,5 @@
function template(locals) {
var pug_html = "", pug_mixins = {}, pug_interp;
pug_html = pug_html + '<html><body><p>The message is "<em>hello world</em>"</p></body></html>';
return pug_html;
}

View File

@@ -0,0 +1,4 @@
<head>
<script type="text/javascript">alert('hello world');</script>
</head>

View File

@@ -0,0 +1,5 @@
function template(locals) {
var pug_html = "", pug_mixins = {}, pug_interp;
pug_html = pug_html + "<head><script type=\"text/javascript\">alert('hello world');</script></head>";
return pug_html;
}

Some files were not shown because too many files have changed in this diff Show More