Skip to content

Commit

Permalink
now with component examples
Browse files Browse the repository at this point in the history
  • Loading branch information
mafintosh committed Jan 30, 2013
1 parent 86f9c3a commit 4818716
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
28 changes: 28 additions & 0 deletions example.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<!DOCTYPE html>
<html>
<head>
<title>json-markup component example</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="build/build.css">
<script src="build/build.js"></script>
</head>
<body>
<script>
var jsonMarkup = require('json-markup');

document.body.innerHTML += jsonMarkup({
title: 'example',
time: new Date().getTime(),
misc: [
['i am an arrray'],
{i:{am:{an:'object'}}},
'string',
42,
true,
null
],
empty: {}
});
</script>
</body>
</html>
7 changes: 7 additions & 0 deletions makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
build: index.js style.css
@component build --dev

clean:
rm -fr build

.PHONY: clean

0 comments on commit 4818716

Please sign in to comment.