public DotlessConfiguration Process(XmlNode section) { XmlAttribute attribute = section.Attributes["minifyCss"]; var dotlessConfiguration = new DotlessConfiguration(); if (attribute != null && attribute.Value == "true") dotlessConfiguration.MinifyOutput = true; return dotlessConfiguration; }
public object Create(object parent, object configContext, XmlNode section) { var configuration = new DotlessConfiguration(); //Default try { var interpreter = new XmlConfigurationInterpreter(); configuration = interpreter.Process(section); } catch (Exception) { //TODO: Log the errormessage to somewhere } return configuration; }