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, '"'); } } '>go :beer: The missing package manager for OS X.
aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/ipmitool.rb
blob: e9fc7e114e7be179f4a59b2d0d824828c92f695d (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