C# 클래스 BlogEngine.Core.Web.Scripting.Helpers

Helper methods for script manipulations
파일 보기 프로젝트 열기: rasmuskl/ReSharperCourse

공개 메소드들

메소드 설명
AddBundledStylesAndScripts ( System page ) : void

Add bundles created by web.optimization

AddCustomCodeToHead ( System page ) : void

Adds code to the HTML head section.

AddGenericLink ( System page, string type, string relation, string title, string href ) : void

Add generic lit to the page

AddScript ( System page, string src, bool top = true, bool defer = false, bool asnc = false ) : void

Add javascript to page

AddStyle ( System page, string lnk ) : void

Add stylesheet to page header

AddTrackingScript ( System page ) : void

Adds a JavaScript to the bottom of the page at runtime.

You must add the script tags to the BlogSettings.Instance.TrackingScript.

FormatInlineScript ( string script ) : string

Format inline script

메소드 상세

AddBundledStylesAndScripts() 공개 정적인 메소드

Add bundles created by web.optimization
public static AddBundledStylesAndScripts ( System page ) : void
page System Base page
리턴 void

AddCustomCodeToHead() 공개 정적인 메소드

Adds code to the HTML head section.
public static AddCustomCodeToHead ( System page ) : void
page System
리턴 void

AddGenericLink() 공개 정적인 메소드

Add generic lit to the page
public static AddGenericLink ( System page, string type, string relation, string title, string href ) : void
page System Page
type string Type
relation string Relation
title string Title
href string Url
리턴 void

AddScript() 공개 정적인 메소드

Add javascript to page
public static AddScript ( System page, string src, bool top = true, bool defer = false, bool asnc = false ) : void
page System Page
src string Source
top bool If add to page header
defer bool Defer
asnc bool Async
리턴 void

AddStyle() 공개 정적인 메소드

Add stylesheet to page header
public static AddStyle ( System page, string lnk ) : void
page System Page
lnk string Href link
리턴 void

AddTrackingScript() 공개 정적인 메소드

Adds a JavaScript to the bottom of the page at runtime.
You must add the script tags to the BlogSettings.Instance.TrackingScript.
public static AddTrackingScript ( System page ) : void
page System
리턴 void

FormatInlineScript() 공개 정적인 메소드

Format inline script
public static FormatInlineScript ( string script ) : string
script string JavaScript code
리턴 string