From 6841a5e5d86f7b9140f98e5ee49e51d173e3c87f Mon Sep 17 00:00:00 2001 From: Ryan McGrath Date: Thu, 23 Jun 2011 03:02:10 +0900 Subject: [PATCH] Here --- index.html | 2 +- js/gitstatus.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 7518e64..22108d7 100644 --- a/index.html +++ b/index.html @@ -71,7 +71,7 @@ var x = parseInt(Math.random() * 100000); c.innerHTML = [ '<div id="gitstatus_' + x + '"></div>\n', - '<script type="text/javascript" src=""></script>\n', + '<script type="text/javascript" src="http://ryanmcgrath.github.com/gitstatus/js/gitstatus.min.js"></script>\n', '<script type="text/javascript">\n', 'new GitStatus({\n', ' id: "gitstatus_' + x + '",\n', diff --git a/js/gitstatus.js b/js/gitstatus.js index e4658b0..2f613e6 100644 --- a/js/gitstatus.js +++ b/js/gitstatus.js @@ -204,7 +204,7 @@ * @returns String, parsed/replaced template. */ render: function(template, context) { - for(x in context) template = template.replace(new RegExp('{{' + x + '}}', 'g'), context[x]); + for(x in context) template = template.replace(new RegExp('{{' + x + '}}', 'g'), context[x].replace('<', '<').replace('>', '>')); return template; } };