-
Notifications
You must be signed in to change notification settings - Fork 93
Expand file tree
/
Copy pathtemplates.js
More file actions
77 lines (76 loc) · 2.48 KB
/
Copy pathtemplates.js
File metadata and controls
77 lines (76 loc) · 2.48 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
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
(function () {
var template = Handlebars.template,
templates = (Handlebars.templates = Handlebars.templates || {});
templates["age"] = template({
compiler: [8, ">= 4.3.0"],
main: function (container, depth0, helpers, partials, data) {
var helper,
alias1 = depth0 != null ? depth0 : container.nullContext || {},
alias2 = container.hooks.helperMissing,
alias3 = "function",
alias4 = container.escapeExpression,
lookupProperty =
container.lookupProperty ||
function (parent, propertyName) {
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
return parent[propertyName];
}
return undefined;
};
return (
'<h1 class="age-label">AGE</h1>\n<h2 class="count">' +
alias4(
((helper =
(helper =
lookupProperty(helpers, "year") ||
(depth0 != null ? lookupProperty(depth0, "year") : depth0)) !=
null
? helper
: alias2),
typeof helper === alias3
? helper.call(alias1, {
name: "year",
hash: {},
data: data,
loc: {
start: { line: 2, column: 18 },
end: { line: 2, column: 26 },
},
})
: helper),
) +
"<sup>." +
alias4(
((helper =
(helper =
lookupProperty(helpers, "milliseconds") ||
(depth0 != null
? lookupProperty(depth0, "milliseconds")
: depth0)) != null
? helper
: alias2),
typeof helper === alias3
? helper.call(alias1, {
name: "milliseconds",
hash: {},
data: data,
loc: {
start: { line: 2, column: 32 },
end: { line: 2, column: 48 },
},
})
: helper),
) +
"</sup></h2>"
);
},
useData: true,
});
templates["dob"] = template({
compiler: [8, ">= 4.3.0"],
main: function (container, depth0, helpers, partials, data) {
return '<form>\n <h1 id="dob" class="age-label">When were you born?</h1>\n <footer>\n <input type="date" name="dob" id="dob">\n <button type="submit">Motivate</button>\n </footer>\n<form>\n';
},
useData: true,
});
})();