blocks-in-if.tokens.json
2.2 KB
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
{"type":"comment","line":1,"col":1,"val":" see https://github.com/pugjs/pug/issues/1589","buffer":false}
{"type":"newline","line":3,"col":1}
{"type":"code","line":3,"col":1,"val":"var ajax = true","mustEscape":false,"buffer":false}
{"type":"newline","line":5,"col":1}
{"type":"code","line":5,"col":1,"val":"if( ajax )","mustEscape":false,"buffer":false}
{"type":"indent","line":6,"col":1,"val":4}
{"type":"comment","line":6,"col":5,"val":" return only contents if ajax requests","buffer":false}
{"type":"newline","line":7,"col":1}
{"type":"block","line":7,"col":5,"val":"contents","mode":"replace"}
{"type":"indent","line":8,"col":1,"val":8}
{"type":"tag","line":8,"col":9,"val":"p"}
{"type":"text","line":8,"col":11,"val":"ajax contents"}
{"type":"outdent","line":10,"col":5}
{"type":"outdent","line":10,"col":1}
{"type":"code","line":10,"col":1,"val":"else","mustEscape":false,"buffer":false}
{"type":"indent","line":11,"col":1,"val":4}
{"type":"comment","line":11,"col":5,"val":" return all html","buffer":false}
{"type":"newline","line":12,"col":1}
{"type":"doctype","line":12,"col":5,"val":"html"}
{"type":"newline","line":13,"col":1}
{"type":"tag","line":13,"col":5,"val":"html"}
{"type":"indent","line":14,"col":1,"val":8}
{"type":"tag","line":14,"col":9,"val":"head"}
{"type":"indent","line":15,"col":1,"val":12}
{"type":"tag","line":15,"col":13,"val":"meta"}
{"type":"start-attributes","line":15,"col":17}
{"type":"attribute","line":15,"col":19,"name":"charset","val":"'utf8'","mustEscape":true}
{"type":"end-attributes","line":15,"col":34}
{"type":"newline","line":16,"col":1}
{"type":"tag","line":16,"col":13,"val":"title"}
{"type":"text","line":16,"col":19,"val":"sample"}
{"type":"newline","line":17,"col":1}
{"type":"tag","line":17,"col":13,"val":"body"}
{"type":"indent","line":18,"col":1,"val":16}
{"type":"block","line":18,"col":17,"val":"contents","mode":"replace"}
{"type":"indent","line":19,"col":1,"val":20}
{"type":"tag","line":19,"col":21,"val":"p"}
{"type":"text","line":19,"col":23,"val":"all contetns"}
{"type":"outdent","line":20,"col":17}
{"type":"outdent","line":20,"col":13}
{"type":"outdent","line":20,"col":9}
{"type":"outdent","line":20,"col":5}
{"type":"outdent","line":20,"col":1}
{"type":"eos","line":20,"col":1}