Skip to content
Snippets Groups Projects
Commit 39bc0949 authored by Commander-lol's avatar Commander-lol
Browse files

Added example for on-the-fly template

parent c898d16c
No related branches found
No related tags found
No related merge requests found
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
<body> <body>
<main id="content"></main> <main id="content"></main>
<aside id="othercontent"></aside>
<script type="x-template/sideburns" data-name="list"> <script type="x-template/sideburns" data-name="list">
<ul> <ul>
...@@ -25,7 +26,14 @@ ...@@ -25,7 +26,14 @@
mu.ready(function(){ mu.ready(function(){
mu("#content").render("list", mu("#content").render("list",
{ {
items: ["hello", "this", "is", "list"] items: ["hello", "this", "is", "unordered", "list"]
},
{
useHtml: true
});
mu("#othercontent").render("<ol>[[* items ]]<li>[[item]]</li>[[/* items ]]</ol>",
{
items: ["hello", "this", "is", "ordered", "list"]
}, },
{ {
useHtml: true useHtml: true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment