statgen / locuszoom

A Javascript/d3 embeddable plugin for interactively visualizing statistical genetic data from customizable sources.
https://statgen.github.io/locuszoom/
MIT License
154 stars 29 forks source link

Expand template markup to allow for conditional blocks #86

Closed Frencil closed 7 years ago

Frencil commented 7 years ago

As described by @pjvandehaar it would sometimes be useful, when available fields may vary from element to element in a single data layer, to write the general tool tip markup such that certain sections would only be displayed if the field is present on the element.

Note that handlebars.js, which was the inspiration for the double-curly markup notation in LocusZoom templates, does have a convention for conditionals, among other things.

pjvandehaar commented 7 years ago

For reference:

pjvandehaar commented 7 years ago

PR https://github.com/statgen/locuszoom/issues/91

Frencil commented 7 years ago

Implemented on v0.5.6