complete redesign: use nodejs on server instead of php - documentation to be updated

This commit is contained in:
Marc Wäckerlin
2016-01-10 23:17:30 +00:00
parent 1c3765955b
commit a56d3118de
1376 changed files with 183732 additions and 1253 deletions

1
nodejs/node_modules/ejs/test/fixtures/backslash.ejs generated vendored Normal file
View File

@@ -0,0 +1 @@
\foo

1
nodejs/node_modules/ejs/test/fixtures/backslash.html generated vendored Normal file
View File

@@ -0,0 +1 @@
\foo

7
nodejs/node_modules/ejs/test/fixtures/comments.ejs generated vendored Normal file
View File

@@ -0,0 +1,7 @@
<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>
<li><a href="fee"><%# ERB style comment %>fee</li>
<li><a href="bah"><%= 'not a ' + '//' + ' comment' %></a></li>

6
nodejs/node_modules/ejs/test/fixtures/comments.html generated vendored Normal file
View File

@@ -0,0 +1,6 @@
<li><a href="foo">foo</li>
<li><a href="bar">bar</li>
<li><a href="baz">baz</li>
<li><a href="qux">qux</li>
<li><a href="fee">fee</li>
<li><a href="bah">not a // comment</a></li>

View File

@@ -0,0 +1 @@
<% var a = 'foo' %><% var b = 'bar' %><%= a %>

View File

@@ -0,0 +1 @@
foo

View File

@@ -0,0 +1 @@
<p><%= "lo" + 'ki' %>'s "wheelchair"</p>

View File

@@ -0,0 +1 @@
<p>loki's "wheelchair"</p>

5
nodejs/node_modules/ejs/test/fixtures/error.ejs generated vendored Normal file
View File

@@ -0,0 +1,5 @@
<ul>
<% if (users) { %>
<p>Has users</p>
<% } %>
</ul>

8
nodejs/node_modules/ejs/test/fixtures/error.out generated vendored Normal file
View File

@@ -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

1
nodejs/node_modules/ejs/test/fixtures/fail.ejs generated vendored Normal file
View File

@@ -0,0 +1 @@
<% function foo() return 'foo'; %>

View File

@@ -0,0 +1 @@
<p>Hello world!</p>

View File

@@ -0,0 +1,5 @@
<ul>
<@ pets.forEach(function(pet){ @>
<@- include(path.join(dir, 'pet'), {pet: pet}); @>
<@ }); @>
</ul>

View File

@@ -0,0 +1,3 @@
<ul>
<%- include('hello-world'); %>
</ul>

View File

@@ -0,0 +1,4 @@
<ul>
<p>Hello world!</p>
</ul>

View File

@@ -0,0 +1 @@
<style><%- include('style.css', {value: 'bar'}); %></style>

View File

@@ -0,0 +1,4 @@
<style>body {
foo: 'bar';
}
</style>

5
nodejs/node_modules/ejs/test/fixtures/include.ejs generated vendored Normal file
View File

@@ -0,0 +1,5 @@
<ul>
<@ pets.forEach(function(pet){ @>
<@- include('pet', {pet: pet}); @>
<@ }); @>
</ul>

12
nodejs/node_modules/ejs/test/fixtures/include.html generated vendored Normal file
View File

@@ -0,0 +1,12 @@
<ul>
<li>geddy</li>
<li>neil</li>
<li>alex</li>
</ul>

View File

@@ -0,0 +1 @@
<%- include('../tmp/include') %>

View File

@@ -0,0 +1 @@
<p>Old</p>

View File

@@ -0,0 +1 @@
<style><% var value = 'bar' %><% include style.css %></style>

View File

@@ -0,0 +1,4 @@
<style>body {
foo: 'bar';
}
</style>

View File

@@ -0,0 +1,5 @@
<ul>
<@ pets.forEach(function(pet){ @>
<@ include pet @>
<@ }) @>
</ul>

View File

@@ -0,0 +1,12 @@
<ul>
<li>geddy</li>
<li>neil</li>
<li>alex</li>
</ul>

View File

@@ -0,0 +1 @@
<%- include ../tmp/include_preprocessor %>

View File

@@ -0,0 +1 @@
<p>Old</p>

View File

@@ -0,0 +1 @@
<p>This is a file with BOM.</p>

View File

@@ -0,0 +1 @@
<li><% include menu/item %></li>

View File

@@ -0,0 +1 @@
<a href="/<%= url %>"><%= title %></a>

3
nodejs/node_modules/ejs/test/fixtures/literal.ejs generated vendored Normal file
View File

@@ -0,0 +1,3 @@
<pre>There should be a space followed by a less-than sign and then two more
spaces in the next line:
< .</pre>

3
nodejs/node_modules/ejs/test/fixtures/literal.html generated vendored Normal file
View File

@@ -0,0 +1,3 @@
<pre>There should be a space followed by a less-than sign and then two more
spaces in the next line:
< .</pre>

15
nodejs/node_modules/ejs/test/fixtures/menu.ejs generated vendored Normal file
View File

@@ -0,0 +1,15 @@
<%- include('includes/menu-item', {
url: '/foo'
, title: 'Foo'
}); -%>
<%- include('includes/menu-item', {
url: '/bar'
, title: 'Bar'
}); -%>
<%- include('includes/menu-item', {
url: '/baz'
, title: 'Baz'
}); -%>

9
nodejs/node_modules/ejs/test/fixtures/menu.html generated vendored Normal file
View File

@@ -0,0 +1,9 @@
<li><a href="//foo">Foo</a>
</li>
<li><a href="//bar">Bar</a>
</li>
<li><a href="//baz">Baz</a>
</li>

View File

@@ -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 -%>

View File

@@ -0,0 +1,8 @@
<li><a href="//foo">Foo</a>
</li>
<li><a href="//bar">Bar</a>
</li>
<li><a href="//baz">Baz</a>
</li>

15
nodejs/node_modules/ejs/test/fixtures/menu_var.ejs generated vendored Normal file
View File

@@ -0,0 +1,15 @@
<%- include(varPath, {
url: '/foo'
, title: 'Foo'
}); -%>
<%- include(varPath, {
url: '/bar'
, title: 'Bar'
}); -%>
<%- include(varPath, {
url: '/baz'
, title: 'Baz'
}); -%>

1
nodejs/node_modules/ejs/test/fixtures/messed.ejs generated vendored Normal file
View File

@@ -0,0 +1 @@
<ul><%users.forEach(function(user){%><li><%=user.name%></li><%})%></ul>

1
nodejs/node_modules/ejs/test/fixtures/messed.html generated vendored Normal file
View File

@@ -0,0 +1 @@
<ul><li>geddy</li><li>neil</li><li>alex</li></ul>

5
nodejs/node_modules/ejs/test/fixtures/newlines.ejs generated vendored Normal file
View File

@@ -0,0 +1,5 @@
<ul>
<% users.forEach(function(user){ %>
<li><%= user.name %></li>
<% }) %>
</ul>

9
nodejs/node_modules/ejs/test/fixtures/newlines.html generated vendored Normal file
View File

@@ -0,0 +1,9 @@
<ul>
<li>geddy</li>
<li>neil</li>
<li>alex</li>
</ul>

View File

@@ -0,0 +1,6 @@
<ul>
<% var unused1 = 'blah' -%>
<% var unused2 = 'bleh' %>
<% var unused3 = 'bloh' -%>
<% var unused4 = 'bluh' %>
</ul>

View File

@@ -0,0 +1,4 @@
<ul>
</ul>

View File

@@ -0,0 +1,5 @@
<ul>
<% users.forEach(function(user){ -%>
<li><%= user.name %></li>
<% }) -%>
</ul>

View File

@@ -0,0 +1,5 @@
AAA
<% data = "test"; -%>
BBB
<%= qdata %>
CCC

View File

@@ -0,0 +1,5 @@
<ul>
<li>geddy</li>
<li>neil</li>
<li>alex</li>
</ul>

View File

@@ -0,0 +1,8 @@
This document does not use semicolons in scriptlets.
<%
var a = 'b'
var b = 'c'
var c
c = b
%>
The value of c is: <%= c %>

View File

@@ -0,0 +1,3 @@
This document does not use semicolons in scriptlets.
The value of c is: c

1
nodejs/node_modules/ejs/test/fixtures/para.ejs generated vendored Normal file
View File

@@ -0,0 +1 @@
<p>hey</p>

1
nodejs/node_modules/ejs/test/fixtures/pet.ejs generated vendored Normal file
View File

@@ -0,0 +1 @@
<li><@= pet.name @></li>

14
nodejs/node_modules/ejs/test/fixtures/rmWhitespace.ejs generated vendored Normal file
View File

@@ -0,0 +1,14 @@
<tag1>
<tag2>
A very long piece of text very long piece of text very long piece of
text very long piece <% var f = 'f' %>of text very long piece of
tex
t very long piece of<% %>text very long
adsffadsfadsfad<%= f %>
piece of text.
<% var a = 'a' %>
Text again.
<% var b = 'b' %>
<% var c = 'c'
var d = 'd' %>

View File

@@ -0,0 +1,8 @@
<tag1>
<tag2>
A very long piece of text very long piece of text very long piece of
text very long piece of text very long piece of
text very long piece oftext very long
adsffadsfadsfadfpiece of text.
Text again.
Another text. c

View File

@@ -0,0 +1 @@
<p><%= 'loki' %>'s wheelchair</p>

View File

@@ -0,0 +1 @@
<p>loki's wheelchair</p>

View File

@@ -0,0 +1,5 @@
<ul>
<%_ users.forEach(function(user){ _%>
<li><%= user.name %></li>
<%_ }) _%>
</ul>

View File

@@ -0,0 +1,5 @@
<ul>
<li>geddy</li>
<li>neil</li>
<li>alex</li>
</ul>

3
nodejs/node_modules/ejs/test/fixtures/style.css generated vendored Normal file
View File

@@ -0,0 +1,3 @@
body {
foo: '<%= value %>';
}

View File

@@ -0,0 +1 @@
<h1><$= locals.name $></h1>

1
nodejs/node_modules/ejs/test/fixtures/user.ejs generated vendored Normal file
View File

@@ -0,0 +1 @@
<h1><$= name $></h1>

View File

@@ -0,0 +1 @@
<%= this.foo %>