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); }
public static void SetPage(XcstCompiler compiler, bool page) { if (compiler is null) { throw new ArgumentNullException(nameof(compiler)); } compiler.SetParameter(XmlNamespaces.XcstApplication, "page", page); }
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); }
public static void SetGenerateLinkTo(XcstCompiler compiler, bool generateLinkTo) { if (compiler is null) { throw new ArgumentNullException(nameof(compiler)); } compiler.SetParameter(XmlNamespaces.XcstApplication, "generate-linkto", generateLinkTo); }
public static void SetApplicationUri(XcstCompiler compiler, Uri?applicationUri) { if (compiler is null) { throw new ArgumentNullException(nameof(compiler)); } compiler.SetParameter(XmlNamespaces.XcstApplication, "application-uri", applicationUri); }
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); } }