Skip to content

Commit

Permalink
MDL-56241 theme_boost: add example context to block.mustache
Browse files Browse the repository at this point in the history
  • Loading branch information
danpoltawski authored and Damyon Wiese committed Nov 7, 2016
1 parent f93be27 commit fb42071
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions theme/boost/templates/core/block.mustache
@@ -1,3 +1,18 @@
{{!
@template theme_boost/block
Example context (json):
{
"id": "block0",
"showskiplink": true,
"type": "html",
"ariarole": "complementary",
"title": "Test block",
"blockinstanceid": 1,
"content": "<p>Hello block world!</p>"
}

}}
{{! Block Skip Link }}
{{#showskiplink}}
<a href="#sb-{{skipid}}" class="sr-only sr-only-focusable">{{#str}}skipa, access, {{title}}{{/str}}</a>
Expand Down

0 comments on commit fb42071

Please sign in to comment.