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

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

Issue 10577022: Extensions Docs Server: HandlebarDictGenerator (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Clean up Created 8 years, 6 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_data_source.py
diff --git a/chrome/common/extensions/docs/server2/template_data_source.py b/chrome/common/extensions/docs/server2/template_data_source.py
index a2e1b69a92dace03f3e80173d2ae64249e4e4cce..23ec715f94234dc385d66a23b0d20e3b88738ff6 100644
--- a/chrome/common/extensions/docs/server2/template_data_source.py
+++ b/chrome/common/extensions/docs/server2/template_data_source.py
@@ -24,7 +24,7 @@ class TemplateDataSource(object):
if not template:
return ''
# TODO error handling
- return template.render(context, {'templates': self}).text
+ return template.render(context, self).text
not at google - send to devlin 2012/06/20 18:11:53 Why this change? Unless I'm misunderstanding, it m
cduvall 2012/06/20 18:24:49 Yeah, I changed this because I thought it would wo
def __getitem__(self, key):
return self.get(key)

Powered by Google App Engine
This is Rietveld 408576698