parse static method

Implementation

static DOMTemplateVariable? parse(String s) {
  s = s.trim();
  if (s.isEmpty) return null;

  var keys = s.split('.');
  return DOMTemplateVariable(keys);
}