<link rel="stylesheet" href="//mkws.indexdata.com/mkws.css" />
</head>
<body>
- <div class="mkwsSearch"></div>
- <div class="mkwsResults"></div>
+ <div class="mkws-progress"></div>
+ <div class="mkws-search"></div>
+ <div class="mkws-results"></div>
+ <div class="mkws-stat"></div>
</body>
</html>
documentation](http://handlebarsjs.com/).
The templates used by the core widgets can be viewed in [our git
- repository](http://git.indexdata.com/?p=mkws.git;a=tree;f=src/mkws.templates;).
+ repository](http://git.indexdata.com/?p=mkws.git;a=tree;f=src/templates;).
Parameters are documented in a comment at the top of each template so
you can see what's going where. If all you want to do is add a CSS class to
something or change a `span` to a `div` it's easy to just copy the existing
-// A widget for one record
+// A widget for a record-list of a single record
mkws.registerWidgetType('record', function() {
if (!this.config.maxrecs) this.config.maxrecs = 1;
var that = this;
var team = this.team;
team.queue("records").subscribe(function(data) {
- var template = team.loadTemplate(that.config.template || "Record");
+ var template = team.loadTemplate(that.config.template || "details");
var targs = mkws.$.extend({}, data.hits[0], that.config.template_vars);
that.node.html(template(targs));
});