Esempio n. 1
0
        public BuildScript(string filename)
        {
            _sheet = new PropertySheet(_project);
            _sheet.ParseFile(filename);

            foreach(var target in _sheet.CurrentView.ReplaceableChildren ) {
                target.MapTo(_project.LookupTarget(target),PtkRoutes);
            }

            _sheet.Route(_project.ProjectRoutes());

            // convert #product-info into a dictionary.
            productInformation = _sheet.Metadata.Value.Keys.Where(each => each.StartsWith("product-info")).ToXDictionary(each => each.Substring(12), each => _sheet.Metadata.Value[each]);

            _sheet.CopyToModel();
        }