Demos

Some simple demos to show MTE in action. All features are not covered!

Example 1

A simple template, rendered and adopted when pressing the link.

Run:

Render and adopt

My Title

This is my content

Webpage google.com

Code (HTML version):

Code (JavaScript version):

Example 2

A simple template, rendered with data and adopted when pressing the link.

Run:

Render and adopt

Code (HTML version):

Code (JavaScript version):

Example 3

A simple template, rendered with array data of non-complex type.

Run:

Render and adopt

Code:

Example 4

A template with more content and options.

Run:

Render and adopt
Hello
Your age is:

Code:

Example 5

A template using list.

Run:

Render and adopt
Hello
You have the following pets:

Code:

Example 6

A template using list and sorting together with nested observable objects.

Run:

Add another pet Remove a pet
Hello
You have the following pets:
()

Code:

Example 7

Templates created with HTML and loaded asynchronously

Run:

Render and adopt

Markup:

Code: