Permalink
Browse files

Anticipate having multiple demo links for some items.

Also ensures demo links are displayed for any data type.
  • Loading branch information...
1 parent 5ec5a5b commit 64160800fd54dd8f2a0955580dc825d6a1ed04f0 @kristiancalhoun kristiancalhoun committed Apr 1, 2013
@@ -66,6 +66,13 @@
</dd>
<?js } ?>
+ <?js if (data.demo && demo.length) { ?>
+ <h5>Demo:</h5>
+ <ul class="see-list"><?js demo.forEach(function(d) { ?>
+ <li><?js= d ?></li>
+ <?js }); ?></ul>
+ <?js } ?>
+
<?js if (data.see && see.length) {?>
<h5>See:</h5>
<ul class="see-list"><?js see.forEach(function(s) { ?>
@@ -58,12 +58,7 @@
returns.forEach(function(r) { ?>
<?js= self.partial('returns.tmpl', r) ?>
<?js });
- } } ?>
-
- <?js if (data.demo && demo.length) { ?>
- <h5>Demo:</h5>
- <p class="description"><?js= data.demo ?></p>
- <?js } ?>
+ } } ?>
<?js if (data.examples && examples.length) { ?>
<h5>Example<?js= examples.length > 1? 's':'' ?></h5>

0 comments on commit 6416080

Please sign in to comment.