Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4951)

Unified Diff: chrome/common/extensions/docs/server2/template_renderer.py

Issue 498813002: Rename the docserver third_party dependency "handlebar" to "motemplate", as part (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: imports Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/docs/server2/template_renderer.py
diff --git a/chrome/common/extensions/docs/server2/template_renderer.py b/chrome/common/extensions/docs/server2/template_renderer.py
index 6b7e7c4eb2499ee655c5267696e5e6d6f6edfa8a..8408a90b5f788bcd13a0dfbf6a570c17705c5a4b 100644
--- a/chrome/common/extensions/docs/server2/template_renderer.py
+++ b/chrome/common/extensions/docs/server2/template_renderer.py
@@ -3,7 +3,7 @@
# found in the LICENSE file.
from data_source_registry import CreateDataSources
-from third_party.handlebar import Handlebar
+from third_party.motemplate import Motemplate
from url_constants import GITHUB_BASE, EXTENSIONS_SAMPLES
@@ -27,7 +27,7 @@ class TemplateRenderer(object):
Specify |additional_context| to inject additional template context when
rendering the template.
'''
- assert isinstance(template, Handlebar), type(template)
+ assert isinstance(template, Motemplate), type(template)
render_context = CreateDataSources(self._server_instance, request)
if data_sources is not None:
render_context = dict((name, d) for name, d in render_context.iteritems()

Powered by Google App Engine
This is Rietveld 408576698