-
Notifications
You must be signed in to change notification settings - Fork 0
/
compiledWithDebug.js
146 lines (139 loc) · 6.22 KB
/
compiledWithDebug.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
var jade = require('jade/lib/runtime');
var locals = {
fortunes: [
{id: 0, message: "Additional fortune added at request time."},
{id: 1, message: "Blurb"},
{id: 2, message: "wat?"}
]
};
module.exports = function() {
var jade_debug = [{ lineno: 1, filename: "/home/andreas/code/sampleexpress/views/fortunes/index.jade" }];
try {
var buf = [];
var jade_mixins = {};
var jade_interp;
;var locals_for_with = (locals || {});(function (fortunes, undefined) {
jade_debug.unshift({ lineno: 0, filename: "/home/andreas/code/sampleexpress/views/layout.jade" });
jade_debug.unshift({ lineno: 1, filename: "/home/andreas/code/sampleexpress/views/layout.jade" });
buf.push("<!DOCTYPE html>");
jade_debug.shift();
jade_debug.unshift({ lineno: 2, filename: "/home/andreas/code/sampleexpress/views/layout.jade" });
buf.push("<html>");
jade_debug.unshift({ lineno: undefined, filename: jade_debug[0].filename });
jade_debug.unshift({ lineno: 3, filename: "/home/andreas/code/sampleexpress/views/layout.jade" });
buf.push("<head>");
jade_debug.unshift({ lineno: undefined, filename: jade_debug[0].filename });
jade_debug.unshift({ lineno: 4, filename: "/home/andreas/code/sampleexpress/views/layout.jade" });
buf.push("<title>");
jade_debug.unshift({ lineno: undefined, filename: jade_debug[0].filename });
jade_debug.unshift({ lineno: 4, filename: jade_debug[0].filename });
buf.push("Fortunes");
jade_debug.shift();
jade_debug.shift();
buf.push("</title>");
jade_debug.shift();
jade_debug.shift();
buf.push("</head>");
jade_debug.shift();
jade_debug.unshift({ lineno: 5, filename: "/home/andreas/code/sampleexpress/views/layout.jade" });
buf.push("<body>");
jade_debug.unshift({ lineno: undefined, filename: jade_debug[0].filename });
jade_debug.unshift({ lineno: 3, filename: "/home/andreas/code/sampleexpress/views/layout.jade" });
jade_debug.unshift({ lineno: 4, filename: "/home/andreas/code/sampleexpress/views/fortunes/index.jade" });
buf.push("<table>");
jade_debug.unshift({ lineno: undefined, filename: jade_debug[0].filename });
jade_debug.unshift({ lineno: 5, filename: "/home/andreas/code/sampleexpress/views/fortunes/index.jade" });
buf.push("<tr>");
jade_debug.unshift({ lineno: undefined, filename: jade_debug[0].filename });
jade_debug.unshift({ lineno: 6, filename: "/home/andreas/code/sampleexpress/views/fortunes/index.jade" });
buf.push("<th>");
jade_debug.unshift({ lineno: undefined, filename: jade_debug[0].filename });
jade_debug.unshift({ lineno: 6, filename: jade_debug[0].filename });
buf.push("id");
jade_debug.shift();
jade_debug.shift();
buf.push("</th>");
jade_debug.shift();
jade_debug.unshift({ lineno: 7, filename: "/home/andreas/code/sampleexpress/views/fortunes/index.jade" });
buf.push("<th>");
jade_debug.unshift({ lineno: undefined, filename: jade_debug[0].filename });
jade_debug.unshift({ lineno: 7, filename: jade_debug[0].filename });
buf.push("message");
jade_debug.shift();
jade_debug.shift();
buf.push("</th>");
jade_debug.shift();
jade_debug.shift();
buf.push("</tr>");
jade_debug.shift();
jade_debug.unshift({ lineno: 8, filename: "/home/andreas/code/sampleexpress/views/fortunes/index.jade" });
// iterate fortunes
;(function(){
var $$obj = fortunes;
if ('number' == typeof $$obj.length) {
for (var $index = 0, $$l = $$obj.length; $index < $$l; $index++) {
var fortune = $$obj[$index];
jade_debug.unshift({ lineno: 8, filename: "/home/andreas/code/sampleexpress/views/fortunes/index.jade" });
jade_debug.unshift({ lineno: 9, filename: "/home/andreas/code/sampleexpress/views/fortunes/index.jade" });
buf.push("<tr>");
jade_debug.unshift({ lineno: undefined, filename: jade_debug[0].filename });
jade_debug.unshift({ lineno: 10, filename: "/home/andreas/code/sampleexpress/views/fortunes/index.jade" });
buf.push("<td>" + (jade.escape(null == (jade_interp = fortune.id) ? "" : jade_interp)));
jade_debug.unshift({ lineno: undefined, filename: jade_debug[0].filename });
jade_debug.shift();
buf.push("</td>");
jade_debug.shift();
jade_debug.unshift({ lineno: 11, filename: "/home/andreas/code/sampleexpress/views/fortunes/index.jade" });
buf.push("<td>" + (jade.escape(null == (jade_interp = fortune.message) ? "" : jade_interp)));
jade_debug.unshift({ lineno: undefined, filename: jade_debug[0].filename });
jade_debug.shift();
buf.push("</td>");
jade_debug.shift();
jade_debug.shift();
buf.push("</tr>");
jade_debug.shift();
jade_debug.shift();
}
} else {
var $$l = 0;
for (var $index in $$obj) {
$$l++; var fortune = $$obj[$index];
jade_debug.unshift({ lineno: 8, filename: "/home/andreas/code/sampleexpress/views/fortunes/index.jade" });
jade_debug.unshift({ lineno: 9, filename: "/home/andreas/code/sampleexpress/views/fortunes/index.jade" });
buf.push("<tr>");
jade_debug.unshift({ lineno: undefined, filename: jade_debug[0].filename });
jade_debug.unshift({ lineno: 10, filename: "/home/andreas/code/sampleexpress/views/fortunes/index.jade" });
buf.push("<td>" + (jade.escape(null == (jade_interp = fortune.id) ? "" : jade_interp)));
jade_debug.unshift({ lineno: undefined, filename: jade_debug[0].filename });
jade_debug.shift();
buf.push("</td>");
jade_debug.shift();
jade_debug.unshift({ lineno: 11, filename: "/home/andreas/code/sampleexpress/views/fortunes/index.jade" });
buf.push("<td>" + (jade.escape(null == (jade_interp = fortune.message) ? "" : jade_interp)));
jade_debug.unshift({ lineno: undefined, filename: jade_debug[0].filename });
jade_debug.shift();
buf.push("</td>");
jade_debug.shift();
jade_debug.shift();
buf.push("</tr>");
jade_debug.shift();
jade_debug.shift();
}
}
}).call(this);
jade_debug.shift();
jade_debug.shift();
buf.push("</table>");
jade_debug.shift();
jade_debug.shift();
jade_debug.shift();
buf.push("</body>");
jade_debug.shift();
jade_debug.shift();
buf.push("</html>");
jade_debug.shift();
jade_debug.shift();}.call(this,"fortunes" in locals_for_with?locals_for_with.fortunes:typeof fortunes!=="undefined"?fortunes:undefined,"undefined" in locals_for_with?locals_for_with.undefined:typeof undefined!=="undefined"?undefined:undefined));;return buf.join("");
} catch (err) {
jade.rethrow(err, jade_debug[0].filename, jade_debug[0].lineno,"extends ../layout\n\nblock content\n table\n tr\n th id\n th message\n for fortune in fortunes\n tr\n td= fortune.id\n td= fortune.message\n");
}
}