MDL-56241 theme_boost: add example context to block.mustache

This commit is contained in:
Dan Poltawski
2016-11-07 09:41:05 +08:00
committed by Damyon Wiese
parent f93be27185
commit fb42071776
+15
View File
@@ -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>