This commit is contained in:
tatianamac
2019-11-26 14:50:43 -08:00
parent 8a55660ed0
commit 6d5445ecc5
13894 changed files with 2233957 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
ignoredFolder
./ignoredFolder/ignored.md
# This is a comment

View File

@@ -0,0 +1,5 @@
---
title: Date Permalink
permalink: "/{{ page.date | date: '%Y/%m/%d' }}/index.html"
---
Date Permalinks

View File

@@ -0,0 +1,4 @@
{
"datakey1": "datavalue1",
"datakey2": "{{pkg.name}}"
}

View File

@@ -0,0 +1,3 @@
module.exports = {
datakeyfromjs: "howdy"
};

View File

@@ -0,0 +1,7 @@
const dep1 = require("../deps/dep1");
module.exports = function() {
return {
datakeyfromjsfn: "howdy"
};
};

View File

@@ -0,0 +1,3 @@
{
"subdirkey": "subdirvalue"
}

View File

@@ -0,0 +1,3 @@
{
"testdatakey1": "testdatavalue1"
}

View File

@@ -0,0 +1,4 @@
{
"datakey1": "datavalue1",
"datakey2": "<%= pkg.name %>"
}

View File

@@ -0,0 +1 @@
<p>{% block content %}This is a parent.{% endblock %}</p>

View File

View File

@@ -0,0 +1,10 @@
---
keylayout: valuelayout
postRank: 4
daysPosted: 152
yearsPosted: 0.4
---
<div id="layout">
<%- content %>
</div>

View File

@@ -0,0 +1,10 @@
---
keylayout: valuelayout
postRank: 4
daysPosted: 152
yearsPosted: 0.4
---
<div id="layout">
<%- layoutContent %>
</div>

View File

@@ -0,0 +1,10 @@
---
keylayout: valuelayout
postRank: 4
daysPosted: 152
yearsPosted: 0.4
---
<div id="layout">
<%- _layoutContent %>
</div>

View File

@@ -0,0 +1 @@
{% macro label(text) %}<label>{{ text }}</label>{% endmacro %}

View File

@@ -0,0 +1 @@
This is an include. {{ myVariable }}

View File

@@ -0,0 +1 @@
akdlsjafkljdskl

View File

@@ -0,0 +1 @@
This is an include.

View File

@@ -0,0 +1 @@
This is an include.

View File

@@ -0,0 +1 @@
This is an include.

View File

@@ -0,0 +1 @@
This is an include.

View File

@@ -0,0 +1 @@
This is an include.

View File

@@ -0,0 +1 @@
This is an include.

View File

@@ -0,0 +1 @@
Nunjabusiness

View File

@@ -0,0 +1 @@
span This is an include.

View File

@@ -0,0 +1 @@
This is an <%= name %>.

View File

@@ -0,0 +1 @@
This is a {{name}}.

View File

@@ -0,0 +1 @@
This is a {{name}}.

View File

@@ -0,0 +1 @@
span This is #{name}.

View File

@@ -0,0 +1,9 @@
---
layout: layout-b
key1: value1-a
upstream: value2-a
---
<div id="layout-a">
<%- content %>
</div>

View File

@@ -0,0 +1,9 @@
---
key1: value1-b
upstream: value2-b
daysPosted: 154
---
<div id="layout-b">
<%- content %>
</div>

View File

@@ -0,0 +1,3 @@
html
body
block content

View File

@@ -0,0 +1,7 @@
---
keylayout: valuelayout
---
<div id="layout">
{{ content }}
</div>

View File

@@ -0,0 +1 @@
<div>{{ content }}</div>

View File

@@ -0,0 +1,4 @@
---
layoutkey: layoutvalue
---
<div id="{{layoutkey}}">{{ content | safe }}</div>

View File

@@ -0,0 +1,6 @@
---
layoutkey: layoutvalue
---
# Layout header
<div id="{{layoutkey}}">{{ content | safe }}</div>

View File

@@ -0,0 +1,6 @@
{% for foo in pagination.items -%}
{{ foo.data.title }}
{% endfor -%}
{% for bar in collections.bars -%}
{{ bar.data.title }}
{% endfor -%}

View File

@@ -0,0 +1,5 @@
---
inherits: a
layout: layouts/layout-inherit-b.njk
---
{{content | default("this is bad")}} {{inherits}}

View File

@@ -0,0 +1,5 @@
---
inherits: a
layout: layouts/layout-inherit-b.njk
---
{{content}} {{inherits}}

View File

@@ -0,0 +1,6 @@
---
inherits: b
secondinherits: b
layout: layouts/layout-inherit-c.njk
---
{{ content | safe }} {{secondinherits}}

View File

@@ -0,0 +1,6 @@
---
inherits: c
secondinherits: c
thirdinherits: c
---
{{ content | safe }} {{inherits}} {{thirdinherits}}

View File

View File

@@ -0,0 +1,5 @@
---
upstream: Inherited
---
{{ content | safe }}

View File

View File

View File

@@ -0,0 +1 @@
<div id="locallayout">{{ content | safe }}</div>

View File

@@ -0,0 +1,4 @@
---
permalink: "{{ page.fileSlug }}/index.html"
---
Wrapper:{{ layoutContent | safe }}

View File

@@ -0,0 +1,4 @@
---
permalink: test/<%= page.fileSlug %>/
---
<%- content %>

View File

@@ -0,0 +1,4 @@
---
permalink: hello/index.html
---
<%- content %>

View File

@@ -0,0 +1 @@
{% assign test = 2 %}{{ test }}

View File

@@ -0,0 +1 @@
This is an include.

View File

@@ -0,0 +1 @@
This is an include.

View File

@@ -0,0 +1 @@
This is an include.

View File

@@ -0,0 +1 @@
This is an include.

View File

@@ -0,0 +1 @@
Nunjabusiness2

View File

@@ -0,0 +1 @@
/* THIS IS A COMMENT */ alert("Issue #398");

View File

View File

@@ -0,0 +1,9 @@
const missingModule = require("this-is-a-module-that-does-not-exist");
module.exports = function(eleventyConfig) {
eleventyConfig.addFilter("cssmin", function(code) {
return missingModule(code);
});
return {};
};

View File

@@ -0,0 +1 @@
module.exports = Buffer.from("<p>tést</p>");

View File

@@ -0,0 +1,17 @@
class Test {
async data() {
return new Promise((resolve, reject) => {
setTimeout(function() {
resolve({
name: "Ted"
});
}, 50);
});
}
render({ name }) {
return `<p>${name}</p>`;
}
}
module.exports = Test;

View File

@@ -0,0 +1,17 @@
class Test {
static returnsTed() {
return "Ted";
}
returnsBill() {
return "Bill";
}
async render({ name }) {
return Promise.resolve(
`<p>${this.upper(name)}${this.returnsBill()}${Test.returnsTed()}</p>`
);
}
}
module.exports = Test;

View File

@@ -0,0 +1,7 @@
class Test {
async render({ name }) {
return Promise.resolve(`<p>${name}</p>`);
}
}
module.exports = Test;

View File

@@ -0,0 +1,17 @@
class Test {
returnsBill() {
return "Bill";
}
static returnsTed() {
return "Ted";
}
render({ name }) {
return Buffer.from(
`<p>${name}${this.returnsBill()}${Test.returnsTed()}</p>`
);
}
}
module.exports = Test;

View File

@@ -0,0 +1,13 @@
class Test {
get data() {
return {
name: "Ted"
};
}
render({ name }) {
return `<p>${this.upper(name)}</p>`;
}
}
module.exports = Test;

View File

@@ -0,0 +1,13 @@
class Test {
data() {
return {
name: "Ted"
};
}
render({ name }) {
return `<p>${this.upper(name)}</p>`;
}
}
module.exports = Test;

View File

@@ -0,0 +1,30 @@
function Test() {}
// this doesnt return an object?? 🤡
// Test.prototype.data = () => { name: "Ted" };
Test.prototype.data = () => {
return { name: "Ted" };
};
Test.prototype.render = ({ name }) => `<p>${name}</p>`;
/*
Test.prototype.data = function() {
return { name: "Ted" };
};
Test.prototype.render = function(data) {
return `<p>${data.name}</p>`;
}
*/
/*
// this isnt valid syntax?? 🤡
class Test {
data() => {
name: "Ted"
};
render({ name }) => `<p>${name}</p>`;
}
*/
module.exports = Test;

View File

@@ -0,0 +1,13 @@
class Test {
data() {
return {
name: "Ted"
};
}
render({ name }) {
return `<p>${name}</p>`;
}
}
module.exports = Test;

View File

@@ -0,0 +1,20 @@
class Test {
get data() {
return {
key: "value1",
permalink: async function(data) {
return new Promise((resolve, reject) => {
setTimeout(function() {
resolve(`/my-permalink/${data.key}/`);
}, 100);
});
}
};
}
render({ name }) {
return `<p>${name}</p>`;
}
}
module.exports = Test;

View File

@@ -0,0 +1,13 @@
class Test {
get data() {
return {
permalink: Buffer.from("/my-permalink/")
};
}
render({ name }) {
return `<p>${name}</p>`;
}
}
module.exports = Test;

View File

@@ -0,0 +1,14 @@
class Test {
get data() {
return {
key: "value1",
permalink: data => Buffer.from(`/my-permalink/${data.key}/`)
};
}
render({ name }) {
return `<p>${name}</p>`;
}
}
module.exports = Test;

View File

@@ -0,0 +1,16 @@
class Test {
get data() {
return {
title: "My Super Cool Title",
permalink: function({ title }) {
return `/my-permalink/${this.slug(title)}/`;
}
};
}
render({ name }) {
return `<p>${name}</p>`;
}
}
module.exports = Test;

View File

@@ -0,0 +1,14 @@
class Test {
get data() {
return {
key: "value1",
permalink: data => `/my-permalink/${data.key}/`
};
}
render({ name }) {
return `<p>${name}</p>`;
}
}
module.exports = Test;

View File

@@ -0,0 +1,13 @@
class Test {
get data() {
return {
permalink: "/my-permalink/"
};
}
render({ name }) {
return `<p>${name}</p>`;
}
}
module.exports = Test;

View File

@@ -0,0 +1,24 @@
class Test {
data() {
return {
name: "Zach",
otherFn: function() {
return "Thanos";
},
renderData: {
str: `StringTest`,
test: function({ name }) {
return `howdy ${name}`;
}
}
};
}
render(data) {
return `<p>${data.renderData.str}${
data.renderData.test
}, meet ${data.otherFn()}</p>`;
}
}
module.exports = Test;

View File

@@ -0,0 +1,13 @@
class Test {
get data() {
return {
name: "Ted"
};
}
render({ name }) {
return `<p>${name}</p>`;
}
}
module.exports = Test;

View File

@@ -0,0 +1,17 @@
class Test {
static returnsTed() {
return "Ted";
}
returnsBill() {
return "Bill";
}
render({ name }) {
return `<p>${this.upper(
name
)}${this.returnsBill()}${Test.returnsTed()}</p>`;
}
}
module.exports = Test;

View File

@@ -0,0 +1,9 @@
class Test {
data() {
return {
name: "Ted"
};
}
}
module.exports = Test;

View File

@@ -0,0 +1 @@
module.exports = function() {};

View File

@@ -0,0 +1,17 @@
const Dep = require("./class-with-dep-upstream.js");
class Test {
returnsBill() {
return "Bill";
}
static returnsTed() {
return "Ted";
}
render({ name }) {
return `<p>${name}${this.returnsBill()}${Test.returnsTed()}</p>`;
}
}
module.exports = Test;

15
node_modules/@11ty/eleventy/test/stubs/class.11ty.js generated vendored Normal file
View File

@@ -0,0 +1,15 @@
class Test {
returnsBill() {
return "Bill";
}
static returnsTed() {
return "Ted";
}
render({ name }) {
return `<p>${name}${this.returnsBill()}${Test.returnsTed()}</p>`;
}
}
module.exports = Test;

View File

@@ -0,0 +1,11 @@
class Test {
data = {
name: "Ted"
};
render({ name }) {
return `<p>${name}</p>`;
}
}
module.exports = Test;

View File

@@ -0,0 +1,5 @@
---
title: Layout Test
layout: layouts/div-wrapper-layout.njk
---
{{ title }}

View File

@@ -0,0 +1,6 @@
Layout
<%- content %>
All <%= collections.all.length %> templates
Layout <%= collections.dog.length %> dog

View File

@@ -0,0 +1,4 @@
---
tags:
- dog
---

View File

@@ -0,0 +1,4 @@
---
layout: layout.ejs
---
Template

View File

@@ -0,0 +1,7 @@
---
key1: value1
renderData:
key2: value2-{{ key1 }}.css
tags:
- dog
---

View File

@@ -0,0 +1 @@
{% for post in collections.dog %}{{ post.data.renderData.key2 }}{% endfor %}

View File

@@ -0,0 +1,4 @@
---
tags:
- dog
---

View File

@@ -0,0 +1 @@
fileSlug:{% for post in collections.dog %}{{ post.url }}:{{ post.fileSlug }}{% endfor %}

View File

@@ -0,0 +1,3 @@
Layout
<%- content %>

View File

@@ -0,0 +1,4 @@
---
tags:
- dog
---

View File

@@ -0,0 +1,7 @@
---
layout: layout.ejs
---
Template
All <%= collections.all.length %> templates
Template <%= collections.dog.length %> dog

View File

@@ -0,0 +1,8 @@
---
title: Test Title
tags:
- post
- dog
---
# Test 1

View File

@@ -0,0 +1,5 @@
---
tags: cat
---
# Test 2

View File

@@ -0,0 +1,7 @@
---
tags:
- post
- cat
---
# Test 3

View File

@@ -0,0 +1,5 @@
---
date: 1983-01-01
---
# Test 3

View File

@@ -0,0 +1,5 @@
---
date: 2020-01-01
---
# Test 3

View File

@@ -0,0 +1 @@
# Test 6

View File

@@ -0,0 +1 @@
# Test 7

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