Note: Jet.Js ia ALPA yet, can have any bugs. Found a bug, report Here.

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>

 

⚠️Note: This documentation is still being written and updated regularly. For now it rather short, but will be detailed and will be added more examples. Jet.js is in alpha, so features may change or improve quickly.
It’s recommended to subscribe for mailing list to be informed in time Click here