diff options
Diffstat (limited to 'node_modules/ejs/test/fixtures')
28 files changed, 94 insertions, 0 deletions
diff --git a/node_modules/ejs/test/fixtures/backslash.ejs b/node_modules/ejs/test/fixtures/backslash.ejs new file mode 100644 index 0000000..eeb4a48 --- /dev/null +++ b/node_modules/ejs/test/fixtures/backslash.ejs @@ -0,0 +1 @@ +\foo
\ No newline at end of file diff --git a/node_modules/ejs/test/fixtures/backslash.html b/node_modules/ejs/test/fixtures/backslash.html new file mode 100644 index 0000000..eeb4a48 --- /dev/null +++ b/node_modules/ejs/test/fixtures/backslash.html @@ -0,0 +1 @@ +\foo
\ No newline at end of file diff --git a/node_modules/ejs/test/fixtures/comments.ejs b/node_modules/ejs/test/fixtures/comments.ejs new file mode 100644 index 0000000..ba34b0a --- /dev/null +++ b/node_modules/ejs/test/fixtures/comments.ejs @@ -0,0 +1,5 @@ +<li><a href="foo"><% // double-slash comment %>foo</li> +<li><a href="bar"><% /* C-style comment */ %>bar</li> +<li><a href="baz"><% // double-slash comment with newline + %>baz</li> +<li><a href="qux"><% var x = 'qux'; // double-slash comment @ end of line %><%= x %></li>
\ No newline at end of file diff --git a/node_modules/ejs/test/fixtures/comments.html b/node_modules/ejs/test/fixtures/comments.html new file mode 100644 index 0000000..f728923 --- /dev/null +++ b/node_modules/ejs/test/fixtures/comments.html @@ -0,0 +1,4 @@ +<li><a href="foo">foo</li> +<li><a href="bar">bar</li> +<li><a href="baz">baz</li> +<li><a href="qux">qux</li>
\ No newline at end of file diff --git a/node_modules/ejs/test/fixtures/double-quote.ejs b/node_modules/ejs/test/fixtures/double-quote.ejs new file mode 100644 index 0000000..3bccdcf --- /dev/null +++ b/node_modules/ejs/test/fixtures/double-quote.ejs @@ -0,0 +1 @@ +<p><%= "lo" + 'ki' %>'s "wheelchair"</p>
\ No newline at end of file diff --git a/node_modules/ejs/test/fixtures/double-quote.html b/node_modules/ejs/test/fixtures/double-quote.html new file mode 100644 index 0000000..6473979 --- /dev/null +++ b/node_modules/ejs/test/fixtures/double-quote.html @@ -0,0 +1 @@ +<p>loki's "wheelchair"</p>
\ No newline at end of file diff --git a/node_modules/ejs/test/fixtures/error.ejs b/node_modules/ejs/test/fixtures/error.ejs new file mode 100644 index 0000000..f032730 --- /dev/null +++ b/node_modules/ejs/test/fixtures/error.ejs @@ -0,0 +1,5 @@ +<ul> + <% if (users) { %> + <p>Has users</p> + <% } %> +</ul>
\ No newline at end of file diff --git a/node_modules/ejs/test/fixtures/error.out b/node_modules/ejs/test/fixtures/error.out new file mode 100644 index 0000000..a2c9108 --- /dev/null +++ b/node_modules/ejs/test/fixtures/error.out @@ -0,0 +1,8 @@ +ReferenceError: error.ejs:2 + 1| <ul> + >> 2| <% if (users) { %> + 3| <p>Has users</p> + 4| <% } %> + 5| </ul> + +users is not defined
\ No newline at end of file diff --git a/node_modules/ejs/test/fixtures/include.css.ejs b/node_modules/ejs/test/fixtures/include.css.ejs new file mode 100644 index 0000000..f47358b --- /dev/null +++ b/node_modules/ejs/test/fixtures/include.css.ejs @@ -0,0 +1 @@ +<style><% var value = 'bar' %><% include style.css %></style>
\ No newline at end of file diff --git a/node_modules/ejs/test/fixtures/include.css.html b/node_modules/ejs/test/fixtures/include.css.html new file mode 100644 index 0000000..43343fe --- /dev/null +++ b/node_modules/ejs/test/fixtures/include.css.html @@ -0,0 +1,3 @@ +<style>body { + foo: 'bar'; +}</style>
\ No newline at end of file diff --git a/node_modules/ejs/test/fixtures/include.ejs b/node_modules/ejs/test/fixtures/include.ejs new file mode 100644 index 0000000..8017337 --- /dev/null +++ b/node_modules/ejs/test/fixtures/include.ejs @@ -0,0 +1,5 @@ +<ul> + [[ pets.forEach(function(pet){ ]] + [[ include pet ]] + [[ }) ]] +</ul>
\ No newline at end of file diff --git a/node_modules/ejs/test/fixtures/include.html b/node_modules/ejs/test/fixtures/include.html new file mode 100644 index 0000000..ca3e298 --- /dev/null +++ b/node_modules/ejs/test/fixtures/include.html @@ -0,0 +1,9 @@ +<ul> + + <li>tobi</li> + + <li>loki</li> + + <li>jane</li> + +</ul>
\ No newline at end of file diff --git a/node_modules/ejs/test/fixtures/includes/menu-item.ejs b/node_modules/ejs/test/fixtures/includes/menu-item.ejs new file mode 100644 index 0000000..37cca5f --- /dev/null +++ b/node_modules/ejs/test/fixtures/includes/menu-item.ejs @@ -0,0 +1 @@ +<li><% include menu/item %></li>
\ No newline at end of file diff --git a/node_modules/ejs/test/fixtures/includes/menu/item.ejs b/node_modules/ejs/test/fixtures/includes/menu/item.ejs new file mode 100644 index 0000000..8abc3fe --- /dev/null +++ b/node_modules/ejs/test/fixtures/includes/menu/item.ejs @@ -0,0 +1 @@ +<a href="/<%= url %>"><%= title %></a>
\ No newline at end of file diff --git a/node_modules/ejs/test/fixtures/menu.ejs b/node_modules/ejs/test/fixtures/menu.ejs new file mode 100644 index 0000000..61fad41 --- /dev/null +++ b/node_modules/ejs/test/fixtures/menu.ejs @@ -0,0 +1,11 @@ +<% var url = '/foo' -%> +<% var title = 'Foo' -%> +<% include includes/menu-item -%> + +<% var url = '/bar' -%> +<% var title = 'Bar' -%> +<% include includes/menu-item -%> + +<% var url = '/baz' -%> +<% var title = 'Baz' -%> +<% include includes/menu-item -%>
\ No newline at end of file diff --git a/node_modules/ejs/test/fixtures/menu.html b/node_modules/ejs/test/fixtures/menu.html new file mode 100644 index 0000000..1f9e45f --- /dev/null +++ b/node_modules/ejs/test/fixtures/menu.html @@ -0,0 +1,3 @@ +<li><a href="//foo">Foo</a></li> +<li><a href="//bar">Bar</a></li> +<li><a href="//baz">Baz</a></li>
\ No newline at end of file diff --git a/node_modules/ejs/test/fixtures/messed.ejs b/node_modules/ejs/test/fixtures/messed.ejs new file mode 100644 index 0000000..7d69033 --- /dev/null +++ b/node_modules/ejs/test/fixtures/messed.ejs @@ -0,0 +1 @@ +<ul><%users.forEach(function(user){%><li><%=user.name%></li><%})%></ul>
\ No newline at end of file diff --git a/node_modules/ejs/test/fixtures/messed.html b/node_modules/ejs/test/fixtures/messed.html new file mode 100644 index 0000000..1e49148 --- /dev/null +++ b/node_modules/ejs/test/fixtures/messed.html @@ -0,0 +1 @@ +<ul><li>tobi</li><li>loki</li><li>jane</li></ul>
\ No newline at end of file diff --git a/node_modules/ejs/test/fixtures/newlines.ejs b/node_modules/ejs/test/fixtures/newlines.ejs new file mode 100644 index 0000000..47401b2 --- /dev/null +++ b/node_modules/ejs/test/fixtures/newlines.ejs @@ -0,0 +1,5 @@ +<ul> + <% users.forEach(function(user){ %> + <li><%= user.name %></li> + <% }) %> +</ul>
\ No newline at end of file diff --git a/node_modules/ejs/test/fixtures/newlines.html b/node_modules/ejs/test/fixtures/newlines.html new file mode 100644 index 0000000..ca3e298 --- /dev/null +++ b/node_modules/ejs/test/fixtures/newlines.html @@ -0,0 +1,9 @@ +<ul> + + <li>tobi</li> + + <li>loki</li> + + <li>jane</li> + +</ul>
\ No newline at end of file diff --git a/node_modules/ejs/test/fixtures/no.newlines.ejs b/node_modules/ejs/test/fixtures/no.newlines.ejs new file mode 100644 index 0000000..029b461 --- /dev/null +++ b/node_modules/ejs/test/fixtures/no.newlines.ejs @@ -0,0 +1,5 @@ +<ul> + <% users.forEach(function(user){ -%> + <li><%= user.name %></li> + <% }) -%> +</ul>
\ No newline at end of file diff --git a/node_modules/ejs/test/fixtures/no.newlines.html b/node_modules/ejs/test/fixtures/no.newlines.html new file mode 100644 index 0000000..6efee2c --- /dev/null +++ b/node_modules/ejs/test/fixtures/no.newlines.html @@ -0,0 +1,5 @@ +<ul> + <li>tobi</li> + <li>loki</li> + <li>jane</li> + </ul>
\ No newline at end of file diff --git a/node_modules/ejs/test/fixtures/para.ejs b/node_modules/ejs/test/fixtures/para.ejs new file mode 100644 index 0000000..89da779 --- /dev/null +++ b/node_modules/ejs/test/fixtures/para.ejs @@ -0,0 +1 @@ +<p>hey</p>
\ No newline at end of file diff --git a/node_modules/ejs/test/fixtures/pet.ejs b/node_modules/ejs/test/fixtures/pet.ejs new file mode 100644 index 0000000..5788558 --- /dev/null +++ b/node_modules/ejs/test/fixtures/pet.ejs @@ -0,0 +1 @@ +<li>[[= pet.name ]]</li>
\ No newline at end of file diff --git a/node_modules/ejs/test/fixtures/single-quote.ejs b/node_modules/ejs/test/fixtures/single-quote.ejs new file mode 100644 index 0000000..1e35a95 --- /dev/null +++ b/node_modules/ejs/test/fixtures/single-quote.ejs @@ -0,0 +1 @@ +<p><%= 'loki' %>'s wheelchair</p>
\ No newline at end of file diff --git a/node_modules/ejs/test/fixtures/single-quote.html b/node_modules/ejs/test/fixtures/single-quote.html new file mode 100644 index 0000000..3125173 --- /dev/null +++ b/node_modules/ejs/test/fixtures/single-quote.html @@ -0,0 +1 @@ +<p>loki's wheelchair</p>
\ No newline at end of file diff --git a/node_modules/ejs/test/fixtures/style.css b/node_modules/ejs/test/fixtures/style.css new file mode 100644 index 0000000..1630b8c --- /dev/null +++ b/node_modules/ejs/test/fixtures/style.css @@ -0,0 +1,3 @@ +body { + foo: '<%= value %>'; +}
\ No newline at end of file diff --git a/node_modules/ejs/test/fixtures/user.ejs b/node_modules/ejs/test/fixtures/user.ejs new file mode 100644 index 0000000..b312b5d --- /dev/null +++ b/node_modules/ejs/test/fixtures/user.ejs @@ -0,0 +1 @@ +<h1>{= name}</h1>
\ No newline at end of file |
