Better HTML.
authorMike Taylor <mike@indexdata.com>
Fri, 25 Apr 2014 16:56:48 +0000 (17:56 +0100)
committerMike Taylor <mike@indexdata.com>
Fri, 25 Apr 2014 16:56:48 +0000 (17:56 +0100)
examples/htdocs/mkws-widget-reference.js

index 3fcb43e..78eaa5e 100644 (file)
@@ -4,9 +4,7 @@ mkws.registerWidgetType('Reference', function() {
     if (!this.config.template) this.config.template = 'Reference';
 
     this.team.registerTemplate('Reference', '\
-<a href="{{md-electronic-url}}">\
-  <h1>{{md-title}}</h1>\
-</a>\
+  <h1><a href="{{md-electronic-url}}">{{md-title}}</a></h1>\
 {{#if md-title-remainder}}\
   <b>{{md-title-remainder}}</b>\
 {{/if}}\