Skip to content

Commit 4818716

Browse files
committed
now with component examples
1 parent 86f9c3a commit 4818716

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

example.html

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>json-markup component example</title>
5+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
6+
<link rel="stylesheet" href="build/build.css">
7+
<script src="build/build.js"></script>
8+
</head>
9+
<body>
10+
<script>
11+
var jsonMarkup = require('json-markup');
12+
13+
document.body.innerHTML += jsonMarkup({
14+
title: 'example',
15+
time: new Date().getTime(),
16+
misc: [
17+
['i am an arrray'],
18+
{i:{am:{an:'object'}}},
19+
'string',
20+
42,
21+
true,
22+
null
23+
],
24+
empty: {}
25+
});
26+
</script>
27+
</body>
28+
</html>

makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
build: index.js style.css
2+
@component build --dev
3+
4+
clean:
5+
rm -fr build
6+
7+
.PHONY: clean

0 commit comments

Comments
 (0)