/
simple.bemjson.js
49 lines (49 loc) · 1.35 KB
/
simple.bemjson.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
({
block : 'page',
title : 'bem-components: image',
mods : { theme : 'islands' },
head : [
{ elem : 'css', url : '_simple.css' }
],
content : [
{ tag : 'h2', content : 'image' },
{
block : 'test',
content : [
'Source: ',
{
block : 'image',
url : '../../../test.blocks/image/github.svg',
alt : 'Download',
title : 'Download image'
}
]
},
{ tag : 'br' },
{
block : 'test',
content : [
'Specified size: ',
{
block : 'image',
url : '../../../test.blocks/image/github.svg',
width : 53,
height : 24,
alt : 'GitHub',
title : 'GitHub logo'
}
]
},
{ tag : 'br' },
{
block : 'test',
content : [
'Inline content: ',
{
block : 'image',
content : '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"><path d="M1 13v2h14v-2h-14zm13-7h-3v-5h-6v5.031l-3-.031 6 6 6-6z"/></svg>'
}
]
}
]
});