HtmlLayoutFilesExtensions class
namespace: Serenity.Web assembly: Serenity.Net.Web
Contains extensions for including layout CSS and JS files declared with LayoutCssFileAttribute / LayoutScriptFileAttribute.
public static class HtmlLayoutFilesExtensions
Public Members
| name | description |
|---|---|
| static LayoutCssFiles(…) | Renders stylesheet links for all the CSS files declared with LayoutCssFileAttribute and resolved by ILayoutCssFileProvider, so that dynamically loaded libraries can contribute layout styles without a page specific entry point. When CSS bundling is enabled (Enabled), the files are concatenated into one dynamic CSS bundle served from ~/DynJS.axd/; otherwise a link is rendered for each file. Returns an empty string if there are no files, or if the result was already included in this context. |
| static LayoutScriptFiles(…) | Renders script tags for all the JS files declared with LayoutScriptFileAttribute and resolved by ILayoutScriptFileProvider, so that dynamically loaded libraries can contribute scripts without a page specific entry point. When script bundling is enabled (Enabled), the files are concatenated into one dynamic script bundle served from ~/DynJS.axd/; otherwise a tag is rendered for each file. Returns an empty string if there are no files, or if the result was already included in this context. |
See Also
- Source: HtmlLayoutFilesExtensions.cs