Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

now with component examples

  • Loading branch information...
commit 4818716d898346929b25befa38c2e9854d519659 1 parent 86f9c3a
@mafintosh authored
Showing with 35 additions and 0 deletions.
  1. +28 −0 example.html
  2. +7 −0 makefile
View
28 example.html
@@ -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
7 makefile
@@ -0,0 +1,7 @@
+build: index.js style.css
+ @component build --dev
+
+clean:
+ rm -fr build
+
+.PHONY: clean
Please sign in to comment.
Something went wrong with that request. Please try again.