Remove erroneous mkws-template_underscore and fix demos. MKWS-294
[mkws-moved-to-github.git] / examples / htdocs / templates.html
index 2f39dd2..6c02276 100644 (file)
@@ -2,9 +2,9 @@
   <head>
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
     <title>MKWS demo client</title>
-    <link rel="stylesheet" type="text/css" href="http://mkws.indexdata.com/mkws.css" />
-    <script type="text/javascript" src="http://mkws.indexdata.com/mkws-complete.js"></script>
-    <script class="mkwsTemplate_Summary" type="text/x-handlebars-template">
+    <link rel="stylesheet" type="text/css" href="//mkws.indexdata.com/mkws.css" />
+    <script type="text/javascript" src="//mkws.indexdata.com/mkws-complete.js"></script>
+    <script class="mkws-template-summary" type="text/x-handlebars-template">
       <a href="#" id="{{_id}}" onclick="{{_onclick}}">
        <b>{{md-title}}</b>
       </a>
@@ -15,7 +15,7 @@
        <span><i>{{md-title-responsibility}}</i></span>
       {{/if}}
     </script>
-    <script class="mkwsTemplate_Record" type="text/x-handlebars-template">
+    <script class="mkws-template-record" type="text/x-handlebars-template">
       <table>
        <tr>
          <th>Title</th>
          </td>
        </tr>
        {{/if}}
-       {{#if-any location having="md-subject"}}
+       {{#mkws-if-any location having="md-subject"}}
        <tr>
          <th>Subject</th>
          <td>
-           {{#first location having="md-subject"}}
+           {{#mkws-first location having="md-subject"}}
              {{#if md-subject}}
                {{md-subject}}
              {{/if}}
-           {{/first}}
+           {{/mkws-first}}
          </td>
        </tr>
-       {{/if-any}}
+       {{/mkws-if-any}}
        <tr>
          <th>Locations</th>
          <td>
-           {{#commaList location}}
-             {{attr "@name"}}{{/commaList}}
+           {{#mkws-commaList location}}
+             {{mkws-attr "@name"}}{{/mkws-commaList}}
          </td>
        </tr>
       </table>
     </script>
   </head>
   <body>
-    <div class="mkwsSwitch"></div>
-    <div class="mkwsLang"></div>
-    <div class="mkwsSearch"></div>
-    <div class="mkwsResults"></div>
-    <div class="mkwsTargets"></div>
-    <div class="mkwsStat"></div>
+    <div class="mkws-switch"></div>
+    <div class="mkws-lang"></div>
+    <div class="mkws-search"></div>
+    <div class="mkws-results"></div>
+    <div class="mkws-targets"></div>
+    <div class="mkws-stat"></div>
   </body>
 </html>