Support for hidden_template

It would be great if the hidden attribute could be templated so we could conditionally hide things, e.g.:

    hidden_template: '{% if whatever.condition.here %}true{% else %}false{% endif %}'