-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocpad.coffee
403 lines (397 loc) · 16.1 KB
/
docpad.coffee
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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
module.exports =
## Put your general Website information here!
templateData:
site:
title: "Open Device Lab Hamburg"
twitter: "odl_hh"
phone: "+49 40 2286 9517"
facebook: "https://www.facebook.com/OpenDeviceLabHamburg"
appid: "626483900710424"
email: "[email protected]"
twitterWidgetId: "345529577604542466"
partnerLogos: [
{
path: "assets/img/launchco-hh.svg"
url: "http://launchco.com"
}
{
path: "assets/img/bitmaps/[email protected]"
url: "https://www.facebook.com/IntelDeveloperZone"
}
{
path: "assets/img/coverup.svg"
url: "http://www.coverupaccessories.com/"
}
{
path: "assets/img/nokia.svg"
url: "http://www.nokia.com"
}
{
path: "assets/img/device-lab-logo.svg"
url: "http://devicelab.vanamco.com"
}
{
path: "assets/img/bitmaps/modernie_grey.png"
url: "http://modern.ie"
}
{
path: "assets/img/bitmaps/browserstack.png"
url: "http://browserstack.com"
}
]
devices:
ipod1gen:
manufacturer: "Apple"
model: "iPod 1st Generation"
os: "iOS"
version: "iOS 1.1.5"
contributor: "<a target='_blank' href='https://twitter.com/yyvvonnee'>Yvonne Lingard</a>"
type: "phone"
ipod2gen:
manufacturer: "Apple"
model: "iPod 2nd Generation"
os: "iOS"
version: "iOS 4.2.1"
contributor: "<a target='_blank' href='http://www.brandpfeil.de'>brandpfeil GmbH</a>"
type: "phone"
ipod2gen2:
manufacturer: "Apple"
model: "iPod 2nd Generation"
os: "iOS"
version: "iOS 4.2.1"
contributor: "<a target='_blank' href='http://www.brink-martens.de/'>brink & martens GmbH</a>"
type: "phone"
ipod5gen:
manufacturer: "Apple"
model: "iPod 5th Generation"
os: "iOS"
version: "iOS 7.0.4"
contributor: "<a target='_blank' href='http://www.brandpfeil.de'>brandpfeil GmbH</a>"
type: "phone"
ipad1:
manufacturer: "Apple"
model: "iPad 1st generation"
os: "iOS"
version: "iOS 5.1.1"
contributor: "<a target='_blank' href='http://twitter.com/flix'>Felix Gliesche</a>"
type: "tablet"
ipad1_2:
manufacturer: "Apple"
model: "iPad 1st generation"
os: "iOS"
version: "iOS 5.1.1"
contributor: "<a target='_blank' href='http://www.brink-martens.de/'>brink & martens GmbH</a>"
type: "tablet"
ipad2:
manufacturer: "Apple"
model: "iPad 2nd generation"
os: "iOS"
version: "iOS 6.1.3"
contributor: "<a target='_blank' href='https://twitter.com/klick_ass'>Andre Jay Meissner</a>"
type: "tablet"
ipad3:
manufacturer: "Apple"
model: "iPad 3rd generation"
os: "iOS"
version: "iOS 7.0.4"
contributor: "<a target='_blank' href='http://www.brandpfeil.de'>brandpfeil GmbH</a>"
type: "tablet"
iphone1gen:
manufacturer: "Apple"
model: "iPhone 1st Generation"
os: "iOS"
version: "iOS 3.1"
contributor: "<a target='_blank' href='http://twitter.com/flix'>Felix Gliesche</a>"
type: "phone"
iphone4:
manufacturer: "Apple"
model: "iPhone 4"
os: "iOS"
version: "iOS 7.0.4"
contributor: "<a target='_blank' href='http://www.brandpfeil.de'>brandpfeil GmbH</a>"
type: "phone"
iphone5white:
manufacturer: "Apple"
model: "iPhone 5"
os: "iOS"
version: "iOS 8.1.2"
contributor: "<a target='_blank' href='http://wirtshaus-frauental.de/'>Wirtshaus Frauental</a>"
type: "phone"
iphone5black:
manufacturer: "Apple"
model: "iPhone 5"
os: "iOS"
version: "iOS 9.2.1"
contributor: "<a target='_blank' href='http://twitter.com/flix'>Felix Gliesche</a>"
type: "phone"
iphone6:
manufacturer: "Apple"
model: "iPhone 6"
os: "iOS"
version: "iOS 10.3.3"
contributor: "<a target='_blank' href='http://twitter.com/flix'>Felix Gliesche</a>"
type: "phone"
iphone7:
manufacturer: "Apple"
model: "iPhone 7"
os: "iOS"
version: "iOS 10.3.3"
contributor: "<a target='_blank' href='http://twitter.com/flix'>Felix Gliesche</a>"
type: "phone"
private: true
macbookpro:
manufacturer: "Apple"
model: 'MacBook Pro 13"'
os: "macosx"
version: "Mac OS X 10.7.5"
contributor: "<a target='_blank' href='http://twitter.com/flix'>Felix Gliesche</a>"
type: "laptop"
asusmemopad:
manufacturer: "Asus"
model: "MeMo Pad Full HD 10"
os: "Android"
version: "Android 4.3"
contributor: "<a target='_blank' href='https://www.facebook.com/IntelDeveloperZone'>Intel Developer Zone</a>"
type: "tablet"
Bold9700:
manufacturer: "Blackberry"
model: "Bold 9700"
os: "OS"
version: "OS 6"
contributor: "<a target='_blank' href='https://marklaro.de'>Nikolai Roth</a>"
type: "phone"
Bold9700:
manufacturer: "Blackberry"
model: "Bold 9700"
os: "OS"
version: "OS 5"
contributor: "<a target='_blank' href='https://twitter.com/klick_ass'>Andre Jay Meissner</a>"
type: "phone"
Curve8520:
manufacturer: "Blackberry"
model: "Curve 8520"
os: "OS"
version: "OS 5"
contributor: "<a target='_blank' href='http://www.brink-martens.de/'>brink & martens GmbH</a>"
type: "phone"
Pearl9105:
manufacturer: "Blackberry"
model: "Pearl 9105"
os: "OS"
version: "OS 6"
contributor: "<a target='_blank' href='http://schoetz-partner.com'>Patrick Schötz</a>"
type: "phone"
Playbook:
manufacturer: "Blackberry"
model: "PlayBook"
os: "OS"
version: "OS 2.1.0"
contributor: "<a target='_blank' href='https://twitter.com/klick_ass'>Andre Jay Meissner</a>"
type: "tablet"
Torch9800:
manufacturer: "Blackberry"
model: "Torch 9800"
os: "OS"
version: "OS 6"
contributor: "<a target='_blank' href='http://twitter.com/flix'>Felix Gliesche</a>"
type: "phone"
ascendy520:
manufacturer: "Huawei"
model: "Ascend Y520"
os: "Android"
version: "Android 4.4.2"
contributor: "<a target='_blank' href='http://twitter.com/flix'>Felix Gliesche</a>"
type: "phone"
Nexus2:
manufacturer: "LG"
model: "Nexus 4"
os: "Android"
version: "Android 4.4.2"
contributor: "<a target='_blank' href='http://www.homepage-baukasten-vergleich.de'>Homepage Baukasten Vergleich</a>"
type: "phone"
Nexus:
manufacturer: "LG"
model: "Nexus 4"
os: "Android"
version: "Android 4.4.4"
contributor: "<a target='_blank' href='http://www.brandpfeil.de'>brandpfeil GmbH</a>"
type: "phone"
MotoG:
manufacturer: "Motorola"
model: "Moto G"
os: "Android"
version: "Android 5.1"
contributor: "<a target='_blank' href='http://twitter.com/flix'>Felix Gliesche</a>"
type: "phone"
lumia800:
manufacturer: "Nokia"
model: "Lumia 800"
os: "Windows Phone"
version: "Windows Phone 7.8"
contributor: "<a target='_blank' href='http://www.developer.nokia.com/Devices/Device_specifications/Lumia_800/'>Nokia</a>"
type: "phone"
lumia900:
manufacturer: "Nokia"
model: "Lumia 900"
os: "Windows Phone"
version: "Windows Phone 7.5"
contributor: "<a target='_blank' href='https://twitter.com/klick_ass'>Andre Jay Meissner</a>"
type: "phone"
lumia920:
manufacturer: "Nokia"
model: "Lumia 920"
os: "Windows Phone"
version: "Windows Phone 8"
contributor: "<a target='_blank' href='http://www.developer.nokia.com/Devices/Device_specifications/Lumia_920/'>Nokia</a>"
type: "phone"
asha:
manufacturer: "Nokia"
model: "Asha 311"
os: "Nokia OS"
version: "Nokia OS 5.92"
contributor: "<a target='_blank' href='http://www.developer.nokia.com/Devices/Device_specifications/Asha_311/'>Nokia</a>"
type: "phone"
E90Communicator:
manufacturer: "Nokia"
model: "E90 Communicator"
os: "Symbian"
version: "Symbian 9.2"
contributor: "<a target='_blank' href='http://schoetz-partner.com'>Patrick Schötz</a>"
type: "phone"
E75:
manufacturer: "Nokia"
model: "E75"
os: "Symbian"
version: "Symbian 9.3"
contributor: "<a target='_blank' href='http://schoetz-partner.com'>Patrick Schötz</a>"
type: "phone"
Desire:
manufacturer: "HTC"
model: "Desire"
os: "Android"
version: "Android 2.2"
contributor: "<a target='_blank' href='http://schoetz-partner.com'>Patrick Schötz</a>"
type: "phone"
Desire2:
manufacturer: "HTC"
model: "Desire"
os: "Android"
version: "Android 4.0.4"
contributor: "<a target='_blank' href='http://www.brandpfeil.de'>brandpfeil GmbH</a>"
type: "phone"
DesireHD:
manufacturer: "HTC"
model: "Desire HD"
os: "Android"
version: "Android 2.3.5"
contributor: "<a target='_blank' href='https://twitter.com/klick_ass'>Andre Jay Meissner</a>"
type: "phone"
DesireS:
manufacturer: "HTC"
model: "Desire S"
os: "Android"
version: "Android 4.0.4"
contributor: "<a target='_blank' href='http://launchco.com'>LAUNCH/CO</a>"
type: "phone"
PalmPixiPlus:
manufacturer: "Palm"
model: "Palm Pixi Plus"
os: "Palm webOS"
version: "Palm webOS 1.4.5"
contributor: "<a target='_blank' href='http://launchco.com'>LAUNCH/CO</a>"
type: "phone"
GalaxyMini:
manufacturer: "Samsung"
model: "Galaxy Mini"
os: "Android"
version: "2.3.5"
contributor: "Anonymous"
type: "phone"
GalaxyS:
manufacturer: "Samsung"
model: "Galaxy S"
os: "Android"
version: "2.3.6"
contributor: "<a target='_blank' href='http://twitter.com/achimsen'>Joachim Penk</a>"
type: "phone"
GalaxyS2:
manufacturer: "Samsung"
model: "Galaxy S"
os: "Android"
version: "2.3.6"
contributor: "<a target='_blank' href='https://twitter.com/klick_ass'>Andre Jay Meissner</a>"
type: "phone"
GalaxyTab:
manufacturer: "Samsung"
model: "Galaxy Tab 10.1 M"
os: "Android"
version: "Android 3.1"
contributor: "<a target='_blank' href='http://launchco.com'>LAUNCH/CO</a>"
type: "tablet"
GalaxyTab2:
manufacturer: "Samsung"
model: "Galaxy Tab 2 (GT-P5110)"
os: "Android"
version: "Android 4.2.2"
contributor: "<a target='_blank' href='http://www.brandpfeil.de'>brandpfeil GmbH</a>"
type: "tablet"
GalaxyTab3:
manufacturer: "Samsung"
model: "Galaxy Tab 3 10.1"
os: "Android"
version: "Android 4.2.2"
contributor: "<a target='_blank' href='https://www.facebook.com/IntelDeveloperZone'>Intel Developer Zone</a>"
type: "tablet"
G1:
manufacturer: "T-Mobile"
model: "T-Mobile G1"
os: "Android"
version: "Android 1.6"
contributor: "<a target='_blank' href='http://www.brink-martens.de/'>brink & martens GmbH</a>"
type: "phone"
Flame:
manufacturer: "T2Mobile"
model: "Flame (Firefox OS developer phone)"
os: "Firefox OS"
version: "Firefox OS 1.3.0 prerelease"
contributor: "<a target='_blank' href='http://twitter.com/flix'>Felix Gliesche</a>"
type: "phone"
VB730:
manufacturer: "ViewSonic"
model: "VB730"
os: "Android"
version: "Android 2.2.1"
contributor: "<a target='_blank' href='http://twitter.com/cover_up'>Cover-Up</a>"
type: "tablet"
ZTEOpenC:
manufacturer: "ZTE"
model: "Open C"
os: "Firefox OS"
version: "Firefox OS 1.3.0"
contributor: "<a target='_blank' href='http://twitter.com/flix'>Felix Gliesche</a>"
type: "phone"
## Helpers for the handlebars templating engine
plugins:
less:
compress: true
handlebars:
helpers:
getBlock: (type, prefix, additional...) ->
additional.pop()
newPaths = (prefix+path for path in additional)
@getBlock(type).add(newPaths).toHTML()
lowercase: (string) ->
string.toLowerCase()
safeurl: (url) ->
encodeURI(url)
ifCond: (v1, v2, options) ->
if(v1 == v2)
return options.fn(this)
else
options.inverse(this);
sitemap:
hostname: "http://hamburg.opendevicelab.de"
changefreq: "weekly"
priority: 1
## Dev stuff
growl: false