September 24, 2026

HTL data-sly-call: Calling a Template

HTL sly-call

data-sly-call calls a template defined with data-sly-template. The content of the called template replaces the content of the host element of the call.

<template data-sly-template.mytemplate>TEST</template>
<div data-sly-call="${mytemplate}"></div>

Back to the HTL tutorial index