å
é±æ¸ããã¨ã³ããªã¼ãåè«ãã¢ããããã©ããã¦ææ¸å¦çãXMLã¨é¢ä¿ããã®ã§ããï¼ãã®å
容ãå®éã«ç¢ºèªããããã®JavaScriptããã°ã©ã ãæ¸ãã¦ã¿ã¾ããã 3ã¤ã®é¢æ°ãå«ã¿ãå
¨é¨ã§12è¡ã®ã©ã¤ãã©ãªã§ãã /* templ-process.js */ function processTemplate(templ, con) { var a = (templ.replace(/\}/g, '{')).split('{'); for (var i = 0; i < a.length; i++) if (i%2 == 1) a[i] = con(a[i]); // ã³ã³ããã¹ãconã¯é¢æ° return a.join(''); } function processContext(con1, con2) { return function (k) {return processTemplat
{{#tags}}- {{label}}
{{/tags}}