C# Class Sitecore.Foundation.Assets.Services.RenderAssetsService

A service which helps add the required JavaScript at the end of a page, and CSS at the top of a page. In component based architecture it ensures references and inline scripts are only added once.
Exibir arquivo Open project: Sitecore/Habitat

Public Methods

Method Description
RenderScript ( ScriptLocation location ) : System.Web.HtmlString
RenderStyles ( ) : System.Web.HtmlString

Private Methods

Method Description
IsForContextSite ( Asset asset ) : bool

Method Details

RenderScript() public method

public RenderScript ( ScriptLocation location ) : System.Web.HtmlString
location ScriptLocation
return System.Web.HtmlString

RenderStyles() public method

public RenderStyles ( ) : System.Web.HtmlString
return System.Web.HtmlString