C# 클래스 Open.Core.Web.Script

Constants and helpers for working with script.
Retrieve instance from [WebConstants].
파일 보기 프로젝트 열기: philcockfield/Open.TestHarness.SL

공개 메소드들

메소드 설명
EntryPoint ( string initMethod ) : string

Creates an entry point script for a Script# application.

Path ( ScriptFile script ) : string

Retreives the path to the specified script.

Script ( ) : System

Constructor.

ToScriptLink ( string url, string type = TextJavascript ) : string

Formats the given URL into a SCRIPT tag.

TypeKit ( string id ) : string

Creates the TypeKit embed tag.

WithinBlock ( string script, string type = TextJavascript ) : string

Inserts the given script witin a SCRIPT tag.

this ( ScriptFile scriptFile ) : string

Gets the embed tag for the specified script.

비공개 메소드들

메소드 설명
GetBasePath ( ScriptFile scriptFile ) : string
UseDefaultPath ( ScriptFile scriptFile ) : bool

메소드 상세

EntryPoint() 공개 정적인 메소드

Creates an entry point script for a Script# application.
public static EntryPoint ( string initMethod ) : string
initMethod string The entry point initialization method (eg. 'MyNamespace.Application.main').
리턴 string

Path() 공개 메소드

Retreives the path to the specified script.
public Path ( ScriptFile script ) : string
script ScriptFile The script to retrieve the path for.
리턴 string

Script() 공개 메소드

Constructor.
public Script ( ) : System
리턴 System

ToScriptLink() 공개 정적인 메소드

Formats the given URL into a SCRIPT tag.
public static ToScriptLink ( string url, string type = TextJavascript ) : string
url string The path to the script file.
type string The script language type.
리턴 string

TypeKit() 공개 메소드

Creates the TypeKit embed tag.
public TypeKit ( string id ) : string
id string The ID for the typekit instance.
리턴 string

WithinBlock() 공개 정적인 메소드

Inserts the given script witin a SCRIPT tag.
public static WithinBlock ( string script, string type = TextJavascript ) : string
script string The script to embed
type string The script language type.
리턴 string

this() 공개 메소드

Gets the embed tag for the specified script.
public this ( ScriptFile scriptFile ) : string
scriptFile ScriptFile Flag indicating what script to retrieve the path for.
리턴 string