1 {{- This is the shared template for Extension/App samples pages.
2 - |filterList| The list of APIs that show up in the filter box.
3 - |platform| The platform.
4 - |platformTitle| The title of the platform (
"Extensions" or
"Apps").
5 - |samplesList| The list of samples shown on the page.
6 - |samplesTitle| The title of the samples (
"Sample Extensions" or
"Apps").
7 - |samplesUrl| The source URL of the samples.
8 - |sidenav| The sidenav items.
10 {{+content:partials.site
12 platformTitle:platformTitle
14 <h1>Sample {{platformTitle}}
</h1>
15 <div id=
"samples-controls">
16 <table class=
"controlbox">
18 <td class=
"label">Filter by keyword:
</td>
19 <td><input autofocus
type=
"search" id=
"search_input" placeholder=
"Type to search"></td>
22 <td class=
"label">Filter by API:
</td>
24 <div id=
"api_filter_items">
25 {{#filter:filterList.all +partials.filter_item item:filter /}}
<br>
32 {{#s:samplesList +partials.sample_item sample:s /}}
34 <p>There was a problem fetching the sample {{platformTitle}}, but they may be
35 available directly from the
<a href=
"{{samplesUrl}}">source
</a>.
</p>
37 <script src=
"{{static}}/js/samples.js" type=
"text/javascript"></script>