exports.SiteMap = SiteMap; /** * @see http://www.sitemaps.org/protocol.php * * @param docs * @returns {SiteMap} */ function SiteMap(docs){ this.render = function() { var map = []; map.push(''); map.push(''); docs.forEach(function(doc){ map.push(' http://docs.angularjs.org/#!/' + encode(doc.section) + '/' + encode(doc.id) + 'weekly'); }); map.push(''); map.push(''); return map.join('\n'); }; function encode(text){ return text .replace(/&/mg, '&') .replace(//mg, '>') .replace(/'/mg, ''') .replace(/"/mg, '"'); } } '>g3_v1_3
aboutsummaryrefslogtreecommitdiffstats
path: root/docs/src/callback.js
blob: aaf69cde785752c2e3bace5b63433852e708b718 (plain)
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