コード例 #1
0
        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;
        }
コード例 #2
0
        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;
        }