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

Unified Diff: chrome/common/extensions/docs/templates/private/function_details.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/function_details.html
diff --git a/chrome/common/extensions/docs/templates/private/function_details.html b/chrome/common/extensions/docs/templates/private/function_details.html
index 9b50e0797f8c173c0672ba9c8bbc700b9b2a2334..c52f59c9d81a91e040b07d9af1e402dd746ac3d4 100644
--- a/chrome/common/extensions/docs/templates/private/function_details.html
+++ b/chrome/common/extensions/docs/templates/private/function_details.html
@@ -1,32 +1,29 @@
-{{- Parameters:
- |api|: the schema for the API that the function belongs to
- |function|: the schema for the function
- |parentName|: name of the parent object of the function
--}}
-<div class="summary{{^function.returns}}{{?api}} uncapitalize{{/}}{{/}}">
+{{#function}}
+<div class="summary{{^returns}}{{?api}} uncapitalize{{/}}{{/}}">
{{+partials.function_signature function:function
parentName:parentName
- api:api}}
+ api:api/}}
</div>
<div class="description">
- {{?function.description}}
+ {{?description}}
<p>
- {{{function.description}}}
+ {{{description}}}
</p>
- {{/function.description}}
- {{?function.parameters}}
+ {{/description}}
+ {{?parameters}}
<h4>Parameters</h4>
<dl>
- {{#function.parameters}}
- {{+partials.parameter_full}}
- {{/function.parameters}}
+ {{#p:parameters}}
+ {{+partials.parameter_full parameter:p/}}
+ {{/parameters}}
</dl>
- {{/function.parameters}}
- {{?function.callback}}
- {{+partials.callback}}
- {{/function.callback}}
- {{?function.returns.is_object}}
+ {{/parameters}}
+ {{?callback}}
+ {{+partials.callback callback:callback/}}
+ {{/callback}}
+ {{?returns.is_object}}
<h4>Properties of return type</h4>
- {{+partials.type @:function.returns}}
- {{/function.returns.is_object}}
+ {{+partials.type type:returns/}}
+ {{/returns.is_object}}
</div>
+{{/function}}

Powered by Google App Engine
This is Rietveld 408576698