From 1a55abf42ca36d6d3a7cdc3ffd2cd97cb48ae9b1 Mon Sep 17 00:00:00 2001 From: Sean McArthur <sean.monstar@gmail.com> Date: Mon, 10 Sep 2012 12:59:28 -0700 Subject: [PATCH] remove last instances of EJS on client-side manage acct page uses a template, but has no need for EJS to parse it, since it's plain HTML. --- resources/static/pages/js/manage_account.js | 3 +-- resources/views/index.ejs | 5 +++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/resources/static/pages/js/manage_account.js b/resources/static/pages/js/manage_account.js index 119febf71..c6f85634a 100644 --- a/resources/static/pages/js/manage_account.js +++ b/resources/static/pages/js/manage_account.js @@ -211,8 +211,7 @@ BrowserID.manageAccount = (function() { var self=this, oncomplete = options.ready, - template = new EJS({ text: dom.getInner("#templateManage") }), - manage = template.render({}); + manage = dom.getInner("#templateManage") }); dom.insertAfter(manage, "#hAlign"); diff --git a/resources/views/index.ejs b/resources/views/index.ejs index 77c2b4af5..600183a56 100644 --- a/resources/views/index.ejs +++ b/resources/views/index.ejs @@ -19,6 +19,11 @@ </div> </div> + <!-- + These "templates" below aren't available as EJS client-side, since all + EJS tags are processed when this view is served by the server. + --> + <script type="text/html" id="templateUser"> <li class="identity cf" id="{{ email.replace('@', '_').replace('.', '_') }}"> <div class="email">{{ email }}</div> -- GitLab