| 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 ef0219f0f94638c736687d4b502be5f394640441..760f7c903c7c1c429f38f0359695d273b05c0fb4 100644
|
| --- a/chrome/common/extensions/docs/server2/template_data_source.py
|
| +++ b/chrome/common/extensions/docs/server2/template_data_source.py
|
| @@ -10,11 +10,17 @@ class TemplateDataSource(object):
|
| """This class fetches and compiles templates using the fetcher passed in with
|
| |cache_builder|.
|
| """
|
| - def __init__(self, branch, api_data_source, cache_builder, base_paths):
|
| + def __init__(self,
|
| + branch,
|
| + api_data_source,
|
| + intro_data_source,
|
| + cache_builder,
|
| + base_paths):
|
| self._branch_info = self._MakeBranchDict(branch)
|
| self._static_resources = ((('/' + branch) if branch != 'local' else '') +
|
| '/static')
|
| self._api_data_source = api_data_source
|
| + self._intro_data_source = intro_data_source
|
| self._cache = cache_builder.build(self._LoadTemplate)
|
| self._base_paths = base_paths
|
|
|
| @@ -45,6 +51,7 @@ class TemplateDataSource(object):
|
| return template.render({
|
| 'apis': self._api_data_source,
|
| 'branchInfo': self._branch_info,
|
| + 'intros': self._intro_data_source,
|
| 'partials': self,
|
| 'static': self._static_resources
|
| }).text
|
|
|