예제 #1
0
 /// <summary>
 /// Records that the calling view requires the given script. This does not render any
 /// HTML. Call <see cref="RenderScripts"/> to actually output the script elements.
 /// </summary>
 /// <param name="scriptPathOrUrl">The application relative path to the script file or an absolute external script URL.</param>
 public void ReferenceScript(string scriptPathOrUrl)
 {
     scriptReferenceBuilder.AddReference(scriptPathOrUrl);
 }
예제 #2
0
 /// <summary>
 /// Records that the calling view requires the given stylesheet. This does not render any
 /// HTML. Call <see cref="RenderStylesheets"/> to actually output the link elements.
 /// </summary>
 /// <param name="stylesheetPath">The application relative path to the stylesheet file.</param>
 public void ReferenceStylesheet(string stylesheetPath)
 {
     stylesheetReferenceBuilder.AddReference(stylesheetPath);
 }