File tree Expand file tree Collapse file tree 2 files changed +35
-0
lines changed Expand file tree Collapse file tree 2 files changed +35
-0
lines changed Original file line number Diff line number Diff line change
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 >
Original file line number Diff line number Diff line change
1
+ build : index.js style.css
2
+ @component build --dev
3
+
4
+ clean :
5
+ rm -fr build
6
+
7
+ .PHONY : clean
You can’t perform that action at this time.
0 commit comments