Example #1
0
        public static void SetDefaultModelDynamic(XcstCompiler compiler, bool defaultModelDynamic)
        {
            if (compiler is null)
            {
                throw new ArgumentNullException(nameof(compiler));
            }

            compiler.SetParameter(XmlNamespaces.XcstApplication, "default-model-dynamic", defaultModelDynamic);
        }
Example #2
0
        public static void SetPage(XcstCompiler compiler, bool page)
        {
            if (compiler is null)
            {
                throw new ArgumentNullException(nameof(compiler));
            }

            compiler.SetParameter(XmlNamespaces.XcstApplication, "page", page);
        }
Example #3
0
        public static void SetAnnotateVirtualPath(XcstCompiler compiler, bool annotateVirtualPath)
        {
            if (compiler is null)
            {
                throw new ArgumentNullException(nameof(compiler));
            }

            compiler.SetParameter(XmlNamespaces.XcstApplication, "annotate-virtual-path", annotateVirtualPath);
        }
Example #4
0
        public static void SetGenerateLinkTo(XcstCompiler compiler, bool generateLinkTo)
        {
            if (compiler is null)
            {
                throw new ArgumentNullException(nameof(compiler));
            }

            compiler.SetParameter(XmlNamespaces.XcstApplication, "generate-linkto", generateLinkTo);
        }
Example #5
0
        public static void SetApplicationUri(XcstCompiler compiler, Uri?applicationUri)
        {
            if (compiler is null)
            {
                throw new ArgumentNullException(nameof(compiler));
            }

            compiler.SetParameter(XmlNamespaces.XcstApplication, "application-uri", applicationUri);
        }
Example #6
0
        protected override void ConfigureCompiler(XcstCompiler compiler)
        {
            base.ConfigureCompiler(compiler);

            if (this.IsFileInCodeDir)
            {
                compiler.SetParameter(XmlNamespaces.XcstApplication, "page-type", this.PageType);
            }
            else
            {
                Xcst.Web.Extension.ExtensionLoader.SetDefaultModelDynamic(compiler, true);
            }
        }