A new start

This commit is contained in:
2018-11-24 14:43:59 +01:00
commit 3c32c8a37a
24054 changed files with 1376258 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
<html>
<head>
<script src="{{baseUrl}}/app.js"></script>
</head>
<body>
<h1>{{pageTitle}}</h1>
</body>
</html>

View File

@@ -0,0 +1,8 @@
<html>
<head>
<script src="/app.js"></script>
</head>
<body>
<h1></h1>
</body>
</html>

View File

@@ -0,0 +1,8 @@
<html>
<head>
<script src="http://www.somewhere.com/app.js"></script>
</head>
<body>
<h1>Hello World!</h1>
</body>
</html>

View File

@@ -0,0 +1,4 @@
module.exports = {
baseUrl: 'http://www.somewhere.com',
pageTitle: 'Hello World!'
};

View File

@@ -0,0 +1,3 @@
html {
background-color: [[primaryColor]];
}

View File

@@ -0,0 +1,3 @@
html {
background-color: #A6A6A6;
}

View File

@@ -0,0 +1,3 @@
module.exports = {
primaryColor: '#A6A6A6'
};

View File

@@ -0,0 +1,4 @@
This is a test of hierarchical tokens.
root.name={{root.name}}
root.first.name={{root.first.name}}
root.first.age={{root.first.age}}

View File

@@ -0,0 +1,4 @@
This is a test of hierarchical tokens.
root.name=
root.first.name=
root.first.age=

View File

@@ -0,0 +1,4 @@
This is a test of hierarchical tokens.
root.name=This is the root name
root.first.name=First's Name
root.first.age=99

View File

@@ -0,0 +1,9 @@
module.exports = {
root: {
name: 'This is the root name',
first: {
name: 'First\'s Name',
age: 99
}
}
};

View File

@@ -0,0 +1,4 @@
function test() {
var val1 = {{val1}};
var val2 = [[val2]];
}

View File

@@ -0,0 +1,4 @@
function test() {
var val1 = 123;
var val2 = [[val2]];
}

View File

@@ -0,0 +1,4 @@
function test() {
var val1 = {{val1}};
var val2 = 789;
}

View File

@@ -0,0 +1,4 @@
module.exports = {
val1: 123,
val2: 789
};

View File

@@ -0,0 +1,4 @@
function test() {
var val1 = '{{myVar}}';
var val2 = [[val2]];
}

View File

@@ -0,0 +1,4 @@
function test() {
var val1 = 'hello';
var val2 = [[val2]];
}

View File

@@ -0,0 +1,3 @@
function test() {
var val2 = '{{myVar}}';
}

View File

@@ -0,0 +1,3 @@
function test() {
var val2 = '{"hello":{"nested":"object"}}';
}

View File

@@ -0,0 +1,10 @@
{{doctype}}
<html>
<head>
{{head/title.html}}
</head>
<body>
{{body/heading.html}}
{{body/paragraph.html}}
</body>
</html>

View File

@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html>
<head>
<title>Lorem ipsum</title>
</head>
<body>
<h1>Lorem ipsum</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam et turpis eros.</p>
</body>
</html>

View File

@@ -0,0 +1,10 @@
module.exports = {
'doctype': '<!DOCTYPE html>',
'head': {
'title.html': '<title>Lorem ipsum</title>'
},
'body': {
'heading.html': '<h1>Lorem ipsum</h1>',
'paragraph.html': '<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam et turpis eros.</p>'
}
};

View File

@@ -0,0 +1,7 @@
function test() {
var val1 = '{{myVar}}';
var val2 = '{{array}}';
var val3 = '{{array[0]}}';
var val4 = '{{array[1]}}';
var val5 = '{{hello}}';
}

View File

@@ -0,0 +1,7 @@
function test() {
var val1 = 'test';
var val2 = '["Headline 1","Headline 2","Headline 3"]';
var val3 = 'Headline 1';
var val4 = 'Headline 2';
var val5 = '{"nested":"object"}';
}