Ejemplo n.º 1
0
        public void SaveElementNodeTemplateFile(ElementNodeTemplate elementNodeTemplate, string filePath)
        {
            filePath = _GetRootedPath(filePath, ElementNodeTemplate.Directory);
            filePath = Path.ChangeExtension(filePath, ElementNodeTemplate.Extension);

            IObjectPersistor<ElementNodeTemplate> persistor = PersistorFactory.Instance.CreateElementNodeTemplatePersistor();
            persistor.SaveToFile(elementNodeTemplate, filePath);
        }
 public XmlElementNodeTemplateFilePolicy(ElementNodeTemplate template, XElement content)
 {
     _template = template;
     _content = content;
 }