diff --git a/share/html/index.hbs b/share/html/index.hbs index 21b3746..d1f323c 100644 --- a/share/html/index.hbs +++ b/share/html/index.hbs @@ -37,7 +37,7 @@
{{{.}}}
- {{/each}}
+{{#each examples}}{{{.}}}{{/each}}
{{/if}}
{{#if members.instance}}
{{#each members.instance}}
' + autolink(type.name) + '' : type.name;
} else if (type.type === 'UnionType') {
- return type.elements.map(formatType).join(' or ');
+ return type.elements.map(function (element) {
+ return formatType(element, html);
+ }).join(' or ');
} else if (type.type === 'AllLiteral') {
return 'Any';
} else if (type.type === 'OptionalType') {
- return '[' + formatType(type.expression) + ']';
+ return '[' + formatType(type.expression, html) + ']';
} else if (type.type === 'TypeApplication') {
return formatType(type.expression) + '<' +
- type.applications.map(formatType).join(', ') + '>';
+ type.applications.map(function (application) {
+ return formatType(application, html);
+ }).join(', ') + '>';
}
}