From: Mike Taylor Date: Wed, 27 Nov 2013 16:39:31 +0000 (+0000) Subject: Wrap various field templates in {{##if}} guards. X-Git-Tag: 0.9.1~148^2~37 X-Git-Url: http://git.indexdata.com/?p=mkws-moved-to-github.git;a=commitdiff_plain;h=5b1274553763c33856d42a8e6123dc278037b885 Wrap various field templates in {{##if}} guards. Use {{#link}} helper for md-electronic-url. --- diff --git a/examples/htdocs/mike.html b/examples/htdocs/mike.html index 02bf56d..6e15b2e 100644 --- a/examples/htdocs/mike.html +++ b/examples/htdocs/mike.html @@ -34,18 +34,24 @@ {{/if}} + {{#if md-date}} Date {{md-date}} + {{/if}} + {{#if md-author}} Author {{md-author}} + {{/if}} + {{#if md-electronic-url}} URL - {{md-electronic-url}} + {{#link md-electronic-url}}{{/link}} + {{/if}} Subject {{md-subject}}