-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdefault.slm
68 lines (50 loc) · 2.11 KB
/
default.slm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
doctype html
html lang='en'
head
meta charset='utf-8'
meta http-equiv='X-UA-Compatible' content='IE=edge'
meta name='viewport' content='width=device-width, initial-scale=1'
link rel='icon' type='image/svg+xml' href='svg/pttrn-a-perfect-heart-red.svg'
title = this.package.name
link rel='stylesheet' href='css/default.css'
link rel='stylesheet' href='https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@9.18.1/build/styles/default.min.css'
script src='//cdn.jsdelivr.net/gh/highlightjs/cdn-release@9.18.1/build/highlight.min.js'
javascript:
document.addEventListener('DOMContentLoaded', function(event) {
hljs.configure({
languages: ['html', 'javascript', 'css', 'sass']
});
document.querySelectorAll('pre')
.forEach(function(pre) {
pre.setAttribute('tabindex', '0');
hljs.highlightBlock(pre);
});
});
body class='bc-blue p-4'
header class='ta-center c-white p-4'
h1
= 'Welcome to'
br
= `${this.package.name} v${this.package.version}`
p = `${this.package.description}. Here's a sample component.`
br
main
= content('main')
footer class='ta-center p-4 c-white'
- let date = new Date();
- let opts = {year: 'numeric', month: 'long', day: 'numeric'};
p = `Last updated ${date.toLocaleDateString('en-US', opts)}`
a href='https://commons.wikimedia.org/wiki/File:A_perfect_SVG_heart.svg'
svg class='c-red' width='80' height='80'
title id='svg-a-perfect-heart' A perfect SVG heart
use xlink:href='#pttrn-a-perfect-heart'
script src='js/default.js'
script src='https://cdn.jsdelivr.net/gh/CityOfNewYork/nyco-patterns-framework@v1.0.0-15/dist/utilities/icons/icons.iffe.js'
javascript:
var MyPatterns = new Default();
new Icons('svg/svgs.svg');
= content('scripts')
/ The reload script. This should not be compile during production builds
/ @source https://www.npmjs.com/package/reload
- if this.process.env.NODE_ENV !== 'production'
script src='/reload/reload.js'