Beispiel #1
0
        /// <summary>
        /// Same as DynamicBundlesTopRender, but to be used near the bottom of the page
        /// (would render script bundles).
        /// </summary>
        /// <returns></returns>
        public static IHtmlString DynamicBundlesBottomRender(string tagFormat = null)
        {
            // Note that this assumes that all the bundles are ScriptBundles
            var paths = HttpContextStore.GetBottomBundleNames().ToArray();

            return(tagFormat != null?Scripts.RenderFormat(tagFormat, paths) : Scripts.Render(paths));
        }
Beispiel #2
0
 /// <summary>
 /// Same as DynamicBundlesTopRender, but to be used near the bottom of the page
 /// (would render script bundles).
 /// </summary>
 /// <returns></returns>
 public static IHtmlString DynamicBundlesBottomRender()
 {
     // Note that this assumes that all the bundles are ScriptBundles
     return(Scripts.Render(HttpContextStore.GetBottomBundleNames().ToArray()));
 }