kiln / flourish-sdk

The SDK for developing Flourish templates
Other
80 stars 16 forks source link

Unable to use show_if on sections #48

Closed animateddata closed 5 years ago

animateddata commented 6 years ago
  - Treemap
  - property: treemap_type
    show_if:
      layout: "treemap"

results in:

😱  Failed to reload template
😱  Failed to parse template.yml: bad indentation of a sequence entry at line 40, column 12:
        show_if:
animateddata commented 6 years ago

A workaround is to add show_ifon each of the section's properties.

robinhouston commented 5 years ago

Thanks @animateddata. I think this is a wontfix for now, because I don’t have a good idea for a syntax that would make sense and be valid YAML. Feel free to reopen if you have a concrete proposal for how it might look.