projects
/
mkws-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7e9da39
)
Cleaner logging for record template.
author
Mike Taylor
<mike@indexdata.com>
Tue, 26 Nov 2013 13:53:27 +0000
(13:53 +0000)
committer
Mike Taylor
<mike@indexdata.com>
Tue, 26 Nov 2013 13:53:27 +0000
(13:53 +0000)
tools/htdocs/mkws.js
patch
|
blob
|
history
diff --git
a/tools/htdocs/mkws.js
b/tools/htdocs/mkws.js
index
d6026c7
..
3702be0
100644
(file)
--- a/
tools/htdocs/mkws.js
+++ b/
tools/htdocs/mkws.js
@@
-675,17
+675,16
@@
function renderDetails(data, marker)
function maybeLoadTemplate(name)
{
function maybeLoadTemplate(name)
{
- debug("trying to load template 'name'");
var source = $("#mkwsTemplate" + name).html();
var source = $("#mkwsTemplate" + name).html();
- debug("source = " + source);
if (!source) {
if (!source) {
- // No template: mark as not provided, fall back to hardwired behaviour
+ debug("no template '" + name + "': falling back to default behaviour");
+ // Mark template as not provided
mkws['template' + name] = 0;
return;
}
var template = Handlebars.compile(source);
mkws['template' + name] = 0;
return;
}
var template = Handlebars.compile(source);
- debug("template = " + template);
+ debug("compiled template '" + name + "'");
mkws['template' + name] = template;
}
mkws['template' + name] = template;
}