Skip to main content

@kopflos-labs/handlebars

This module provides a Handlebars template engine for the @kopflos-labs/html-template module.

Helpers

valueof

Prints the value of a SPARQL path at the current graph node. Requires exactly one argument, which is any valid SPARQL Property Path.

Predicate URIs can be prefixed with prefixes known to the Zazuko prefix server. Relative paths are resolved against the API base URL.

<template target-class="schema:Person">
<p>
{{ valueof "schema:name" }} lives in {{ valueof "schema:address/schema:addressLocality" }}
</p>
</template>