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

Unified Diff: chrome/common/extensions/docs/templates/private/sample_item.html

Issue 61733018: Docserver: Update to the latest version of handlebar. Lots of re-syntaxifying. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments, rebase Created 7 years, 1 month 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/templates/private/sample_item.html
diff --git a/chrome/common/extensions/docs/templates/private/sample_item.html b/chrome/common/extensions/docs/templates/private/sample_item.html
index ee2b6bcb20c24758f3d0f2e61bdaed60a7092a5e..2096aa2c9ba58884b1fe59dbc274c8a58921de2b 100644
--- a/chrome/common/extensions/docs/templates/private/sample_item.html
+++ b/chrome/common/extensions/docs/templates/private/sample_item.html
@@ -1,23 +1,23 @@
+{{#sample}}
<div class="sample" tags="{{#api_calls}}chrome.{{name}} {{/}}">
<img class="icon" src="{{icon}}">
<h2 id="{{id}}"><a href="{{download_url}}">{{name}}</a></h2>
- {{?description}}
- {{description}}
- {{/description}}
+ {{?description description/}}
<div>
<span class="label">Calls:</span>
<ul>
- {{#api_calls}}
- <li><code><a href="{{link}}">{{name}}</a></code></li>
- {{/}}
+ {{#call:api_calls}}
+ <li><code><a href="{{call.link}}">{{call.name}}</a></code></li>
+ {{/api_calls}}
</ul>
</div>
<div>
<span class="label">Source Files:</span>
<ul>
- {{#files}}
- <li><code><a href="{{url}}/{{@}}">{{@}}</a></code></li>
- {{/}}
+ {{#f:files}}
+ <li><code><a href="{{url}}/{{f}}">{{f}}</a></code></li>
+ {{/files}}
</ul>
</div>
</div>
+{{/sample}}

Powered by Google App Engine
This is Rietveld 408576698