Permalink
Browse files

now with component examples

  • Loading branch information...
mafintosh committed Jan 30, 2013
1 parent 86f9c3a commit 4818716d898346929b25befa38c2e9854d519659
Showing with 35 additions and 0 deletions.
  1. +28 −0 example.html
  2. +7 −0 makefile
View
@@ -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>
View
@@ -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.