From 39bc09496b88d0f7bd8f3dcd2501fcf4402d714a Mon Sep 17 00:00:00 2001
From: Commander-lol <ljcapitanio@gmail.com>
Date: Fri, 26 Jun 2015 04:53:22 +0100
Subject: [PATCH] Added example for on-the-fly template

---
 test/test.html | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/test/test.html b/test/test.html
index 26cfda8..85df0e9 100644
--- a/test/test.html
+++ b/test/test.html
@@ -12,6 +12,7 @@
 
     <body>
         <main id="content"></main>
+        <aside id="othercontent"></aside>
 
         <script type="x-template/sideburns" data-name="list">
         <ul>
@@ -25,7 +26,14 @@
         mu.ready(function(){
             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
-- 
GitLab