-
Notifications
You must be signed in to change notification settings - Fork 1
/
yak_test.html
executable file
·44 lines (36 loc) · 1.41 KB
/
yak_test.html
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
<!DOCTYPE HTML>
<html>
<head>
<title>yak_test</title>
<script type="text/javascript" src="yak.js"></script>
</head>
<body>
<h1>yak_test</h1>
<script type="text/yak.js">
[
{ p : [ 'Summary: ', { ul : 'wrote plain HTML > got fed up writing closing tags and having too little page structure dynamics > generated HTML using frameworks > too many features > kludge accumulated over time > wrote plain HTML again > got fed up again > wrote - wait first wrote YAK.'.split( '>' ).map( yak.f( '{ li : v }' ) ) }
, { hr : null }
, { p : 'Bonjour' }
, { p : (function define( n ) {
return n > 0
? { blockquote : [ 'Y.A.K. means Yet Another (', define( n - 1 ), ')' ] }
: 'yaK'
;
}( 10 ))
}
, { p : 'Aurevoir' }
]
</script>
<script type="text/javascript" id="yak-paste-object">yak.paste([
{ hr : null }
, { p : [ 'Call yak.paste with an', { strong : 'object' }, ':' ] }
, { pre : { code : document.getElementById( 'yak-paste-object' ).textContent } }
, { hr : null}
]);</script>
<script type="text/javascript" id="yak-paste-filename">yak.paste("yak_test.yak.js");</script>
<script type="text/yak.js">
[ { p : 'By Guillaume Lathoud, December 2014.' } ]
</script>
<script type="text/javascript">yak.parse();</script>
</body>
</html>