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

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;
}