Content(template parts)

Interpolation

Basic Usage

Jet uses a shorthand syntax for inserting dynamic values into your template.
Just wrap your variable, method, or global value in double curly braces:

// JavaScript
${this.title}

// Jet
{{title}}

What you can interpolate:

// Local data property
{{title}}

// Local method
{{myFunction()}}

// Global property
{{app.someGlobalValue}}

// Global function
{{app.globalFunc()}}

Note: For iteration, you should use square single brackets(see Iteration page)

Rendering HTML

Interpolation can render string only, for rendering HTML data use attribute ‘j-html’

Examnple

<div j-html="myHtmlContent"></div>