Class: MasterView::Directives::OmitTag

Inherits:
MasterView::DirectiveBase
  • Object
show all
Defined in:
lib/masterview/directives/omit_tag.rb

Overview

omit tag if attr_value is empty or if at runtime the condition evaluates to true mv:omit_tag=“” will not render the tag, mv:omit_tag=“true” will not render the tag, mv:omit_tag=“false” will render the tag unconditionally mv:omit_tag=“expression” will conditionally render the tag subject to the expression