aboutsummaryrefslogtreecommitdiffstats
path: root/test/BinderTest.js
diff options
exports.SiteMap = SiteMap;

/**
 * @see http://www.sitemaps.org/protocol.php
 *
 * @param docs
 * @returns {SiteMap}
 */
function SiteMap(docs){
  this.render = function(){
    var map = [];
    map.push('<?xml version="1.0" encoding="UTF-8"?>');
    map.push('<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">');
    docs.forEach(function(
context:
space:
mode:
ng:repeat ignores prototype keys
Diffstat (limited to 'test/BinderTest.js')
0 files changed, 0 insertions, 0 deletions
'</urlset>'); map.push(''); return map.join('\n'); }; function encode(text){ return text .replace(/&/mg, '&amp;') .replace(/</mg, '&lt;') .replace(/>/mg, '&gt;') .replace(/'/mg, '&apos;') .replace(/"/mg, '&quot;'); } }