excludeFromTemplate static method

bool excludeFromTemplate(
  1. XmlElement node,
  2. Scope? scope
)

Implementation

static bool excludeFromTemplate(XmlElement node, Scope? scope) {
  bool exclude = false;

  // exclude node from template?
  var value = node.getAttribute('exclude');
  if (value != null) {
    var bindable = BooleanObservable(null, value, scope: scope);
    exclude = bindable.get() ?? false;
    bindable.dispose();
  }
  return exclude;
}