HtmlScriptExtensions.ScriptBundle method
namespace: Serenity.Web assembly: Serenity.Net.Web
Renders individual script elements for all JS files in a bundle if bundling is disabled, and renders a single script element containing the bundle URL if it is enabled.
public static HtmlString ScriptBundle(this IHtmlHelper helper, string bundleKey)
parameter | description |
---|---|
helper | HTML helper |
bundleKey | Bundle key |
Exceptions
exception | condition |
---|---|
ArgumentNullException | Helper or bundleKey is null |
See Also
- class HtmlScriptExtensions