Skip to content

Examples of blocks

To avoid duplicating information in the examples we provide a common configurations that points to the Entrystore instance and a context.

<div data-entryscape="config" data-entryscape-context="93"
     data-entryscape-entrystore="https://demo.entryscape.com/store"></div>

At the end of the examples we need to load the blocks library:

// Include the blocks library after all of the block declarations:
<script src="https://static.cdn.entryscape.com/blocks/1/app.js"></script>

helloworld

<div data-entryscape="helloworld"></div>

text

<div data-entryscape="text" data-entryscape-entry="31"></div>

list

<div data-entryscape="list" data-entryscape-rdftype="foaf:Agent"
     data-entryscape-rdformsid="foaf:Agent"
     data-entryscape-limit="3"></div>

template

<script type="text/x-entryscape-handlebar" data-entryscape="template"
        data-entryscape-entry="256">
  <strong>{{text}}</strong><br>
  {{#eachprop "dcat:theme"}}
     <a href="{{value}}" class="esbTag">{{label}}</a>
  {{/eachprop}}            
</script>