Commit 888df487 authored by Björn Bartels's avatar Björn Bartels

clean-up, update/add tests

parent beba889e
......@@ -189,7 +189,6 @@ Patternlibrary.prototype.parsedocs = require('./patternlibrary/parse-docs'
Patternlibrary.prototype.buildpages = require('./patternlibrary/build-pages');
Patternlibrary.prototype.buildgui = require('./patternlibrary/build-gui');
Patternlibrary.prototype.buildhelp = require('./patternlibrary/build-help');
Patternlibrary.prototype.builddocs = require('./patternlibrary/build-docs');
Patternlibrary.prototype.adapter = require('./patternlibrary/adapter');
......
module.exports = function () {
// all other pages
};
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
......@@ -70,6 +70,7 @@
"babel-preset-env": "^1",
"babel-register": "^6",
"browser-sync": "^2",
"chai": "^4",
"chai-jquery": "^2",
"clipboard": "^1",
"corejs-typeahead": "^1.1.1",
......@@ -117,6 +118,7 @@
"rimraf": "^2",
"sass-true": "^2",
"sinon": "^1",
"striptags": "^2.1.1",
"style-sherpa": "^1",
"vinyl-named": "^1",
"webpack": "^2.7.0",
......
<html>
<body>
<p>Body</p>
</body>
</html>
<html>
<body>
<p>Body</p>
</body>
</html>
<html>
<body>
eggs
bacon
toast
ham
cheese
chips
</body>
</html>
<html>
<body>
eggs
bacon
toast
ham
cheese
chips
</body>
</html>
<html>
<body>
eggs
bacon
toast
</body>
</html>
<html>
<body>
eggs
bacon
toast
</body>
</html>
<html>
<body>
eggs
bacon
toast
</body>
</html>
<html>
<body>
eggs
bacon
toast
</body>
</html>
<html>
<body>
Layout: Yes, kittens.
Page: Yes, kittens.
Partial: Yes, kittens.
</body>
</html>
<html>
<body>
Layout: Yes, kittens.
Page: Yes, kittens.
Partial: Yes, kittens.
</body>
</html>
<html>
<body>
eggs
bacon
toast
</body>
</html>
<html>
<body>
eggs
bacon
toast
</body>
</html>
<html>
<body>
<div class="code-example"><pre><code class="css"><span class="hljs-class">.good-design</span> <span class="hljs-rules">{
<span class="hljs-rule"><span class="hljs-attribute">font-weight</span>:<span class="hljs-value"> <span class="hljs-number">100</span></span></span>;
<span class="hljs-rule"><span class="hljs-attribute">color</span>:<span class="hljs-value"> <span class="hljs-hexcolor">#000</span></span></span>;
<span class="hljs-rule"><span class="hljs-attribute">box-shadow</span>:<span class="hljs-value"> <span class="hljs-number">0</span> -<span class="hljs-number">1px</span> <span class="hljs-number">0</span> <span class="hljs-hexcolor">#fff</span></span></span>;
}</span>
</code></pre></div>
</body>
</html>
<html>
<body>
<div class="code-example"><pre><code class="css"><span class="hljs-class">.good-design</span> <span class="hljs-rules">{
<span class="hljs-rule"><span class="hljs-attribute">font-weight</span>:<span class="hljs-value"> <span class="hljs-number">100</span></span></span>;
<span class="hljs-rule"><span class="hljs-attribute">color</span>:<span class="hljs-value"> <span class="hljs-hexcolor">#000</span></span></span>;
<span class="hljs-rule"><span class="hljs-attribute">box-shadow</span>:<span class="hljs-value"> <span class="hljs-number">0</span> -<span class="hljs-number">1px</span> <span class="hljs-number">0</span> <span class="hljs-hexcolor">#fff</span></span></span>;
}</span>
</code></pre></div>
</body>
</html>
<html>
<body>
Yes, kittens.
Not kittens.
</body>
</html>
<html>
<body>
Yes, kittens.
Not kittens.
</body>
</html>
<html>
<body>
<h1 id="heading">Heading</h1>
<p>Paragraph</p>
</body>
</html>
<html>
<body>
<h1 id="heading">Heading</h1>
<p>Paragraph</p>
</body>
</html>
<html>
<body>
<p>Repeat!</p>
<p>Repeat!</p>
<p>Repeat!</p>
<p>Repeat!</p>
<p>Repeat!</p>
</body>
</html>
<html>
<body>
<p>Repeat!</p>
<p>Repeat!</p>
<p>Repeat!</p>
<p>Repeat!</p>
<p>Repeat!</p>
</body>
</html>
<html>
<body>
Helper!
</body>
</html>
<html>
<body class="alternate">
<p>Body</p>
</body>
</html>
<html>
<body class="alternate">
<p>Body</p>
</body>
</html>
<html>
<body class="alternate">
<p>Body</p>
</body>
</html>
<html>
<body>
<p>Body</p>
</body>
</html>
<html>
<body class="alternate">
<p>Body</p>
</body>
</html>
<html>
<body>
<img src="image.jpg">
<img src="partial.png">
</body>
</html>
<html>
<body>
<img src="image.jpg">
<img src="partial.png">
</body>
</html>
{{#each breakfast.items}}
{{this}}
{{/each}}
{{#each lunch.items}}
{{this}}
{{/each}}
module.exports = {
items: ["eggs", "bacon", "toast"]
}
{{#each breakfast.items}}
{{this}}
{{/each}}
{{#each breakfast.items}}
{{this}}
{{/each}}
<html>
<body>
Layout: {{kittens}}
{{> body}}
{{> partial}}
</body>
</html>
---
kittens: Yes, kittens.
---
Page: {{kittens}}
{{#code 'css'}}
.good-design {
font-weight: 100;
color: #000;
box-shadow: 0 -1px 0 #fff;
}
{{/code}}
---
kittens: kittens
---
{{#ifequal kittens 'kittens'}}
Yes, kittens.
{{/ifequal}}
{{#ifequal kittens 'notkittens'}}
Yes, kittens.
{{else}}
Not kittens.
{{/ifequal}}
<html>
<body>
{{#ifpage 'index'}}Index page{{/ifpage}}
{{#ifpage 'about'}}About page{{/ifpage}}
</body>
</html>
<html>
<body>
{{#unlesspage 'index'}}Not index page{{/unlesspage}}
{{#unlesspage 'about'}}Not about page{{/unlesspage}}
</body>
</html>
module.exports = function() {
return 'Helper!';
}