DefinitelyTyped

Index

Variables

Dynamic modules

Interfaces

Functions

Variables

$: JQueryStatic

jQuery: JQueryStatic

Functions

Sammy(): Application

Returns

Application

Sammy(selector: string): Application

Parameters

  • selector: string

Returns

Application

Sammy(handler: Function): Application

Parameters

  • handler: Function

Returns

Application

Sammy(selector: string, handler: Function): Application

Parameters

  • selector: string
  • handler: Function

Returns

Application

DataLocationProxy: Sammy.DataLocationProxy

constructor(app: any, run_interval_every?: any): Sammy.DataLocationProxy

Parameters

  • app: any
  • run_interval_every?: any optional

Returns

Sammy.DataLocationProxy

constructor(app: any, data_name: any, href_attribute: any): Sammy.DataLocationProxy

Parameters

  • app: any
  • data_name: any
  • href_attribute: any

Returns

Sammy.DataLocationProxy

public _startPolling(every: number)

Parameters

  • every: number

public bind()

public fullPath(location_obj: any): string

Parameters

  • location_obj: any

Returns

string

public setLocation(new_location: string): string

Parameters

  • new_location: string

Returns

string

public unbind()

Form(app: any): any

Parameters

  • app: any

Returns

any

public formFor(name: string, object: any, content_callback: Function): Sammy.FormBuilder

Parameters

  • name: string
  • object: any
  • content_callback: Function

Returns

Sammy.FormBuilder

FormBuilder: Sammy.FormBuilder

constructor(name: any, object: any): any

Parameters

  • name: any
  • object: any

Returns

any

public checkbox(keypath: string, value: any, attributes?: Array<any>): string

Parameters

  • keypath: string
  • value: any
  • attributes?: Array<any> optional

Returns

string

public close(): string

Returns

string

public hidden(keypath: string, attributes?: Array<any>): string

Parameters

  • keypath: string
  • attributes?: Array<any> optional

Returns

string

public label(keypath: string, content: any, attributes?: Array<any>): string

Parameters

  • keypath: string
  • content: any
  • attributes?: Array<any> optional

Returns

string

public open(attributes?: Array<any>): any

Parameters

  • attributes?: Array<any> optional

Returns

any

public password(keypath: string, attributes?: Array<any>): string

Parameters

  • keypath: string
  • attributes?: Array<any> optional

Returns

string

public radio(keypath: string, value: any, attributes?: Array<any>): string

Parameters

  • keypath: string
  • value: any
  • attributes?: Array<any> optional

Returns

string

public select(keypath: string, options: any, attributes?: Array<any>): string

Parameters

  • keypath: string
  • options: any
  • attributes?: Array<any> optional

Returns

string

public submit(attributes?: Array<any>): string

Parameters

  • attributes?: Array<any> optional

Returns

string

public text(keypath: string, attributes?: Array<any>): string

Parameters

  • keypath: string
  • attributes?: Array<any> optional

Returns

string

public textarea(keypath: string, attributes?: Array<any>): string

Parameters

  • keypath: string
  • attributes?: Array<any> optional

Returns

string

GoogleAnalytics: GoogleAnalytics

constructor(app: any, tracker: any): any

Parameters

  • app: any
  • tracker: any

Returns

any

public noTrack(): any

Returns

any

public track(path: any): any

Parameters

  • path: any

Returns

any

SammyFunc: SammyFunc

(): Application

Returns

Application

(selector: string): Application

Parameters

  • selector: string

Returns

Application

(handler: Function): Application

Parameters

  • handler: Function

Returns

Application

(selector: string, handler: Function): Application

Parameters

  • selector: string
  • handler: Function

Returns

Application

Store: Sammy.Store

constructor(options?: any): any

Parameters

  • options?: any optional

Returns

any

public stores: any

public Cookie(name: any, element: any, options: any): any

Parameters

  • name: any
  • element: any
  • options: any

Returns

any

public Data(name: any, element: any): any

Parameters

  • name: any
  • element: any

Returns

any

public LocalStorage(name: any, element: any): any

Parameters

  • name: any
  • element: any

Returns

any

public Memory(name: any, element: any): any

Parameters

  • name: any
  • element: any

Returns

any

public SessionStorage(name: any, element: any): any

Parameters

  • name: any
  • element: any

Returns

any

public Template(app: any, method_alias: any): any

Parameters

  • app: any
  • method_alias: any

Returns

any

public clear(key: string): any

Parameters

  • key: string

Returns

any

public clearAll()

public each(callback: Function): boolean

Parameters

  • callback: Function

Returns

boolean

public exists(key: string): boolean

Parameters

  • key: string

Returns

boolean

public fetch(key: string, callback: Function): any

Parameters

  • key: string
  • callback: Function

Returns

any

public filter(callback: Function): boolean

Parameters

  • callback: Function

Returns

boolean

public first(callback: Function): boolean

Parameters

  • callback: Function

Returns

boolean

public get(key: string): any

Parameters

  • key: string

Returns

any

public isAvailable(): boolean

Returns

boolean

public isAvailable(type: any): any

Parameters

  • type: any

Returns

any

public keys(): Array<string>

Returns

Array<string>

public load(key: string, path: string, callback: Function)

Parameters

  • key: string
  • path: string
  • callback: Function

public set(key: string, value: any): any

Parameters

  • key: string
  • value: any

Returns

any

StoreOptions: StoreOptions

optional public cookie?: any

optional public data?: any

optional public element?: string

optional public local?: any

optional public memory?: any

optional public name?: string

optional public session?: any

optional public type?: string

Application: Application

(appFn: Function): any

Parameters

  • appFn: Function

Returns

any

constructor(obj: any): Object

Parameters

  • obj: any

Returns

Object

public APP_EVENTS: Array<string>

public ROUTE_VERBS: Array<string>

public oauthorize: string

public $element(selector?: string): JQuery

Parameters

  • selector?: string optional

Returns

JQuery

public after(callback: Function): Application

Parameters

  • callback: Function

Returns

Application

public any(verb: string, path: string, callback: Function)

Parameters

  • verb: string
  • path: string
  • callback: Function

public around(callback: Function): Application

Parameters

  • callback: Function

Returns

Application

public before(callback: Function): Application

Parameters

  • callback: Function

Returns

Application

public before(options: any, callback: Function): Application

Parameters

  • options: any
  • callback: Function

Returns

Application

public bind(name: string, callback: Function): Application

Parameters

  • name: string
  • callback: Function

Returns

Application

public bind(name: string, data: any, callback: Function): Application

Parameters

  • name: string
  • data: any
  • callback: Function

Returns

Application

public bindToAllEvents(callback: Function): Application

Parameters

  • callback: Function

Returns

Application

public clearTemplateCache(): any

Returns

any

public contextMatchesOptions(context: any, match_options: any, positive?: boolean): boolean

Parameters

  • context: any
  • match_options: any
  • positive?: boolean optional

Returns

boolean

public del(path: string, callback: Function): Application

Parameters

  • path: string
  • callback: Function

Returns

Application

public del(path: RegExp, callback: Function): Application

Parameters

  • path: RegExp
  • callback: Function

Returns

Application

public destroy(): Application

Returns

Application

public error(message: string, original_error: Error)

Parameters

  • message: string
  • original_error: Error

public escapeHTML(s: string): string

Parameters

  • s: string

Returns

string

public eventNamespace(): string

Returns

string

public get(path: string, callback: Function): Application

Parameters

  • path: string
  • callback: Function

Returns

Application

public get(path: RegExp, callback: Function): Application

Parameters

  • path: RegExp
  • callback: Function

Returns

Application

public getLocation(): string

Returns

string

public h(s: string): string

Parameters

  • s: string

Returns

string

public has(key: string): boolean

Parameters

  • key: string

Returns

boolean

public helper(name: string, method: Function): any

Parameters

  • name: string
  • method: Function

Returns

any

public helpers(extensions: any): any

Parameters

  • extensions: any

Returns

any

public isRunning(): boolean

Returns

boolean

public join(args?: Array<any>): string

Parameters

  • args?: Array<any> optional

Returns

string

public keys(attributes_only?: boolean): Array<string>

Parameters

  • attributes_only?: boolean optional

Returns

Array<string>

public log(params?: Array<any>)

Parameters

  • params?: Array<any> optional

public lookupRoute(verb: string, path: string): any

Parameters

  • verb: string
  • path: string

Returns

any

public mapRoutes(route_array: Array<any>): Application

Parameters

  • route_array: Array<any>

Returns

Application

public notFound(verb: string, path: string): any

Parameters

  • verb: string
  • path: string

Returns

any

public post(path: string, callback: Function): Application

Parameters

  • path: string
  • callback: Function

Returns

Application

public post(path: RegExp, callback: Function): Application

Parameters

  • path: RegExp
  • callback: Function

Returns

Application

public put(path: string, callback: Function): Application

Parameters

  • path: string
  • callback: Function

Returns

Application

public put(path: RegExp, callback: Function): Application

Parameters

  • path: RegExp
  • callback: Function

Returns

Application

public refresh(): Application

Returns

Application

public requireOAuth(): any

Returns

any

public requireOAuth(path?: string): any

Parameters

  • path?: string optional

Returns

any

public requireOAuth(callback?: Function): any

Parameters

  • callback?: Function optional

Returns

any

public routablePath(path: string): string

Parameters

  • path: string

Returns

string

public route(verb: string, path: string, callback: Function): Application

Parameters

  • verb: string
  • path: string
  • callback: Function

Returns

Application

public route(verb: string, path: RegExp, callback: Function): Application

Parameters

  • verb: string
  • path: RegExp
  • callback: Function

Returns

Application

public run(start_url?: string): Application

Parameters

  • start_url?: string optional

Returns

Application

public runRoute(verb: string, path?: string, params?: any, target?: any): any

Parameters

  • verb: string
  • path?: string optional
  • params?: any optional
  • target?: any optional

Returns

any

public send(params?: Array<any>): any

Parameters

  • params?: Array<any> optional

Returns

any

public setLocation(new_location: string): string

Parameters

  • new_location: string

Returns

string

public setLocationProxy(new_proxy: Sammy.DataLocationProxy)

Parameters

  • new_proxy: Sammy.DataLocationProxy

public swap(content: any, callback: Function): any

Parameters

  • content: any
  • callback: Function

Returns

any

public templateCache(key: string, value: any): any

Parameters

  • key: string
  • value: any

Returns

any

public toHTML(): string

Returns

string

public toHash(): any

Returns

any

public toString(): string

Returns

string

public trigger(name: string, data?: any): Application

Parameters

  • name: string
  • data?: any optional

Returns

Application

public unload(): Application

Returns

Application

public use(params?: Array<any>)

Parameters

  • params?: Array<any> optional

EventContext: EventContext

constructor(app: any, verb: any, path: any, params: any, target: any): any

Parameters

  • app: any
  • verb: any
  • path: any
  • params: any
  • target: any

Returns

any

public name: any

public params: any

public partials: any

public title: any

public $element(): JQuery

Returns

JQuery

public engineFor(engine: any): any

Parameters

  • engine: any

Returns

any

public escapeHTML(s: string): string

Parameters

  • s: string

Returns

string

public eventNamespace(): string

Returns

string

public h(s: string): string

Parameters

  • s: string

Returns

string

public has(key: string): boolean

Parameters

  • key: string

Returns

boolean

public interpolate(content: any, data: any, engine: any, partials: any): EventContext

Parameters

  • content: any
  • data: any
  • engine: any
  • partials: any

Returns

EventContext

public join(args?: Array<any>): string

Parameters

  • args?: Array<any> optional

Returns

string

public json(str: any): any

Parameters

  • str: any

Returns

any

public json(str: string): any

Parameters

  • str: string

Returns

any

public keys(attributes_only?: boolean): Array<string>

Parameters

  • attributes_only?: boolean optional

Returns

Array<string>

public load(location: any, options?: any, callback?: Function): any

Parameters

  • location: any
  • options?: any optional
  • callback?: Function optional

Returns

any

public loadPartials(partials: any): any

Parameters

  • partials: any

Returns

any

public log(args?: Array<any>)

Parameters

  • args?: Array<any> optional

public notFound(): any

Returns

any

public partial(location: string, data?: any, callback?: Function, partials?: any): RenderContext

Parameters

  • location: string
  • data?: any optional
  • callback?: Function optional
  • partials?: any optional

Returns

RenderContext

public redirect(params?: Array<any>)

Parameters

  • params?: Array<any> optional

public render(location: string, data?: any, callback?: Function, partials?: any): RenderContext

Parameters

  • location: string
  • data?: any optional
  • callback?: Function optional
  • partials?: any optional

Returns

RenderContext

public renderEach(location: any, data?: Array<{ name: string; data?: any; }>, callback?: Function): RenderContext

Parameters

  • location: any
  • data?: Array<{ name: string; data?: any; }> optional
  • callback?: Function optional

Returns

RenderContext

public send(params?: Array<any>): RenderContext

Parameters

  • params?: Array<any> optional

Returns

RenderContext

public swap(contents: any, callback: Function): string

Parameters

  • contents: any
  • callback: Function

Returns

string

public toHTML(): string

Returns

string

public toHash(): any

Returns

any

public toString(): string

Returns

string

public trigger(name: string, data?: any): EventContext

Parameters

  • name: string
  • data?: any optional

Returns

EventContext

Haml(app: any, method_alias: any): any

Parameters

  • app: any
  • method_alias: any

Returns

any

constructor(app: any, verb: any, path: any, params: any, target: any): any

Parameters

  • app: any
  • verb: any
  • path: any
  • params: any
  • target: any

Returns

any

public name: any

public params: any

public partials: any

public title: any

public $element(): JQuery

Returns

JQuery

public engineFor(engine: any): any

Parameters

  • engine: any

Returns

any

public escapeHTML(s: string): string

Parameters

  • s: string

Returns

string

public eventNamespace(): string

Returns

string

public h(s: string): string

Parameters

  • s: string

Returns

string

public has(key: string): boolean

Parameters

  • key: string

Returns

boolean

public interpolate(content: any, data: any, engine: any, partials: any): EventContext

Parameters

  • content: any
  • data: any
  • engine: any
  • partials: any

Returns

EventContext

public join(args?: Array<any>): string

Parameters

  • args?: Array<any> optional

Returns

string

public json(str: any): any

Parameters

  • str: any

Returns

any

public json(str: string): any

Parameters

  • str: string

Returns

any

public keys(attributes_only?: boolean): Array<string>

Parameters

  • attributes_only?: boolean optional

Returns

Array<string>

public load(location: any, options?: any, callback?: Function): any

Parameters

  • location: any
  • options?: any optional
  • callback?: Function optional

Returns

any

public loadPartials(partials: any): any

Parameters

  • partials: any

Returns

any

public log(args?: Array<any>)

Parameters

  • args?: Array<any> optional

public notFound(): any

Returns

any

public partial(location: string, data?: any, callback?: Function, partials?: any): RenderContext

Parameters

  • location: string
  • data?: any optional
  • callback?: Function optional
  • partials?: any optional

Returns

RenderContext

public redirect(params?: Array<any>)

Parameters

  • params?: Array<any> optional

public render(location: string, data?: any, callback?: Function, partials?: any): RenderContext

Parameters

  • location: string
  • data?: any optional
  • callback?: Function optional
  • partials?: any optional

Returns

RenderContext

public renderEach(location: any, data?: Array<{ name: string; data?: any; }>, callback?: Function): RenderContext

Parameters

  • location: any
  • data?: Array<{ name: string; data?: any; }> optional
  • callback?: Function optional

Returns

RenderContext

public send(params?: Array<any>): RenderContext

Parameters

  • params?: Array<any> optional

Returns

RenderContext

public swap(contents: any, callback: Function): string

Parameters

  • contents: any
  • callback: Function

Returns

string

public toHTML(): string

Returns

string

public toHash(): any

Returns

any

public toString(): string

Returns

string

public trigger(name: string, data?: any): EventContext

Parameters

  • name: string
  • data?: any optional

Returns

EventContext

Handlebars(app: any, method_alias: any): any

Parameters

  • app: any
  • method_alias: any

Returns

any

constructor(app: any, verb: any, path: any, params: any, target: any): any

Parameters

  • app: any
  • verb: any
  • path: any
  • params: any
  • target: any

Returns

any

public name: any

public params: any

public partials: any

public title: any

public $element(): JQuery

Returns

JQuery

public engineFor(engine: any): any

Parameters

  • engine: any

Returns

any

public escapeHTML(s: string): string

Parameters

  • s: string

Returns

string

public eventNamespace(): string

Returns

string

public h(s: string): string

Parameters

  • s: string

Returns

string

public has(key: string): boolean

Parameters

  • key: string

Returns

boolean

public interpolate(content: any, data: any, engine: any, partials: any): EventContext

Parameters

  • content: any
  • data: any
  • engine: any
  • partials: any

Returns

EventContext

public join(args?: Array<any>): string

Parameters

  • args?: Array<any> optional

Returns

string

public json(str: any): any

Parameters

  • str: any

Returns

any

public json(str: string): any

Parameters

  • str: string

Returns

any

public keys(attributes_only?: boolean): Array<string>

Parameters

  • attributes_only?: boolean optional

Returns

Array<string>

public load(location: any, options?: any, callback?: Function): any

Parameters

  • location: any
  • options?: any optional
  • callback?: Function optional

Returns

any

public loadPartials(partials: any): any

Parameters

  • partials: any

Returns

any

public log(args?: Array<any>)

Parameters

  • args?: Array<any> optional

public notFound(): any

Returns

any

public partial(location: string, data?: any, callback?: Function, partials?: any): RenderContext

Parameters

  • location: string
  • data?: any optional
  • callback?: Function optional
  • partials?: any optional

Returns

RenderContext

public redirect(params?: Array<any>)

Parameters

  • params?: Array<any> optional

public render(location: string, data?: any, callback?: Function, partials?: any): RenderContext

Parameters

  • location: string
  • data?: any optional
  • callback?: Function optional
  • partials?: any optional

Returns

RenderContext

public renderEach(location: any, data?: Array<{ name: string; data?: any; }>, callback?: Function): RenderContext

Parameters

  • location: any
  • data?: Array<{ name: string; data?: any; }> optional
  • callback?: Function optional

Returns

RenderContext

public send(params?: Array<any>): RenderContext

Parameters

  • params?: Array<any> optional

Returns

RenderContext

public swap(contents: any, callback: Function): string

Parameters

  • contents: any
  • callback: Function

Returns

string

public toHTML(): string

Returns

string

public toHash(): any

Returns

any

public toString(): string

Returns

string

public trigger(name: string, data?: any): EventContext

Parameters

  • name: string
  • data?: any optional

Returns

EventContext

Hogan(app: any, method_alias: any): any

Parameters

  • app: any
  • method_alias: any

Returns

any

constructor(app: any, verb: any, path: any, params: any, target: any): any

Parameters

  • app: any
  • verb: any
  • path: any
  • params: any
  • target: any

Returns

any

public name: any

public params: any

public partials: any

public title: any

public $element(): JQuery

Returns

JQuery

public engineFor(engine: any): any

Parameters

  • engine: any

Returns

any

public escapeHTML(s: string): string

Parameters

  • s: string

Returns

string

public eventNamespace(): string

Returns

string

public h(s: string): string

Parameters

  • s: string

Returns

string

public has(key: string): boolean

Parameters

  • key: string

Returns

boolean

public interpolate(content: any, data: any, engine: any, partials: any): EventContext

Parameters

  • content: any
  • data: any
  • engine: any
  • partials: any

Returns

EventContext

public join(args?: Array<any>): string

Parameters

  • args?: Array<any> optional

Returns

string

public json(str: any): any

Parameters

  • str: any

Returns

any

public json(str: string): any

Parameters

  • str: string

Returns

any

public keys(attributes_only?: boolean): Array<string>

Parameters

  • attributes_only?: boolean optional

Returns

Array<string>

public load(location: any, options?: any, callback?: Function): any

Parameters

  • location: any
  • options?: any optional
  • callback?: Function optional

Returns

any

public loadPartials(partials: any): any

Parameters

  • partials: any

Returns

any

public log(args?: Array<any>)

Parameters

  • args?: Array<any> optional

public notFound(): any

Returns

any

public partial(location: string, data?: any, callback?: Function, partials?: any): RenderContext

Parameters

  • location: string
  • data?: any optional
  • callback?: Function optional
  • partials?: any optional

Returns

RenderContext

public redirect(params?: Array<any>)

Parameters

  • params?: Array<any> optional

public render(location: string, data?: any, callback?: Function, partials?: any): RenderContext

Parameters

  • location: string
  • data?: any optional
  • callback?: Function optional
  • partials?: any optional

Returns

RenderContext

public renderEach(location: any, data?: Array<{ name: string; data?: any; }>, callback?: Function): RenderContext

Parameters

  • location: any
  • data?: Array<{ name: string; data?: any; }> optional
  • callback?: Function optional

Returns

RenderContext

public send(params?: Array<any>): RenderContext

Parameters

  • params?: Array<any> optional

Returns

RenderContext

public swap(contents: any, callback: Function): string

Parameters

  • contents: any
  • callback: Function

Returns

string

public toHTML(): string

Returns

string

public toHash(): any

Returns

any

public toString(): string

Returns

string

public trigger(name: string, data?: any): EventContext

Parameters

  • name: string
  • data?: any optional

Returns

EventContext

JSON(app: any): any

Parameters

  • app: any

Returns

any

constructor(app: any, verb: any, path: any, params: any, target: any): any

Parameters

  • app: any
  • verb: any
  • path: any
  • params: any
  • target: any

Returns

any

public name: any

public params: any

public partials: any

public title: any

public $element(): JQuery

Returns

JQuery

public engineFor(engine: any): any

Parameters

  • engine: any

Returns

any

public escapeHTML(s: string): string

Parameters

  • s: string

Returns

string

public eventNamespace(): string

Returns

string

public h(s: string): string

Parameters

  • s: string

Returns

string

public has(key: string): boolean

Parameters

  • key: string

Returns

boolean

public interpolate(content: any, data: any, engine: any, partials: any): EventContext

Parameters

  • content: any
  • data: any
  • engine: any
  • partials: any

Returns

EventContext

public join(args?: Array<any>): string

Parameters

  • args?: Array<any> optional

Returns

string

public json(str: any): any

Parameters

  • str: any

Returns

any

public json(str: string): any

Parameters

  • str: string

Returns

any

public keys(attributes_only?: boolean): Array<string>

Parameters

  • attributes_only?: boolean optional

Returns

Array<string>

public load(location: any, options?: any, callback?: Function): any

Parameters

  • location: any
  • options?: any optional
  • callback?: Function optional

Returns

any

public loadPartials(partials: any): any

Parameters

  • partials: any

Returns

any

public log(args?: Array<any>)

Parameters

  • args?: Array<any> optional

public notFound(): any

Returns

any

public partial(location: string, data?: any, callback?: Function, partials?: any): RenderContext

Parameters

  • location: string
  • data?: any optional
  • callback?: Function optional
  • partials?: any optional

Returns

RenderContext

public redirect(params?: Array<any>)

Parameters

  • params?: Array<any> optional

public render(location: string, data?: any, callback?: Function, partials?: any): RenderContext

Parameters

  • location: string
  • data?: any optional
  • callback?: Function optional
  • partials?: any optional

Returns

RenderContext

public renderEach(location: any, data?: Array<{ name: string; data?: any; }>, callback?: Function): RenderContext

Parameters

  • location: any
  • data?: Array<{ name: string; data?: any; }> optional
  • callback?: Function optional

Returns

RenderContext

public send(params?: Array<any>): RenderContext

Parameters

  • params?: Array<any> optional

Returns

RenderContext

public swap(contents: any, callback: Function): string

Parameters

  • contents: any
  • callback: Function

Returns

string

public toHTML(): string

Returns

string

public toHash(): any

Returns

any

public toString(): string

Returns

string

public trigger(name: string, data?: any): EventContext

Parameters

  • name: string
  • data?: any optional

Returns

EventContext

Mustache(app: any, method_alias: any): any

Parameters

  • app: any
  • method_alias: any

Returns

any

constructor(app: any, verb: any, path: any, params: any, target: any): any

Parameters

  • app: any
  • verb: any
  • path: any
  • params: any
  • target: any

Returns

any

public name: any

public params: any

public partials: any

public title: any

public $element(): JQuery

Returns

JQuery

public engineFor(engine: any): any

Parameters

  • engine: any

Returns

any

public escapeHTML(s: string): string

Parameters

  • s: string

Returns

string

public eventNamespace(): string

Returns

string

public h(s: string): string

Parameters

  • s: string

Returns

string

public has(key: string): boolean

Parameters

  • key: string

Returns

boolean

public interpolate(content: any, data: any, engine: any, partials: any): EventContext

Parameters

  • content: any
  • data: any
  • engine: any
  • partials: any

Returns

EventContext

public join(args?: Array<any>): string

Parameters

  • args?: Array<any> optional

Returns

string

public json(str: any): any

Parameters

  • str: any

Returns

any

public json(str: string): any

Parameters

  • str: string

Returns

any

public keys(attributes_only?: boolean): Array<string>

Parameters

  • attributes_only?: boolean optional

Returns

Array<string>

public load(location: any, options?: any, callback?: Function): any

Parameters

  • location: any
  • options?: any optional
  • callback?: Function optional

Returns

any

public loadPartials(partials: any): any

Parameters

  • partials: any

Returns

any

public log(args?: Array<any>)

Parameters

  • args?: Array<any> optional

public notFound(): any

Returns

any

public partial(location: string, data?: any, callback?: Function, partials?: any): RenderContext

Parameters

  • location: string
  • data?: any optional
  • callback?: Function optional
  • partials?: any optional

Returns

RenderContext

public redirect(params?: Array<any>)

Parameters

  • params?: Array<any> optional

public render(location: string, data?: any, callback?: Function, partials?: any): RenderContext

Parameters

  • location: string
  • data?: any optional
  • callback?: Function optional
  • partials?: any optional

Returns

RenderContext

public renderEach(location: any, data?: Array<{ name: string; data?: any; }>, callback?: Function): RenderContext

Parameters

  • location: any
  • data?: Array<{ name: string; data?: any; }> optional
  • callback?: Function optional

Returns

RenderContext

public send(params?: Array<any>): RenderContext

Parameters

  • params?: Array<any> optional

Returns

RenderContext

public swap(contents: any, callback: Function): string

Parameters

  • contents: any
  • callback: Function

Returns

string

public toHTML(): string

Returns

string

public toHash(): any

Returns

any

public toString(): string

Returns

string

public trigger(name: string, data?: any): EventContext

Parameters

  • name: string
  • data?: any optional

Returns

EventContext

Object: Object

constructor(obj: any): Object

Parameters

  • obj: any

Returns

Object

public escapeHTML(s: string): string

Parameters

  • s: string

Returns

string

public h(s: string): string

Parameters

  • s: string

Returns

string

public has(key: string): boolean

Parameters

  • key: string

Returns

boolean

public join(args?: Array<any>): string

Parameters

  • args?: Array<any> optional

Returns

string

public keys(attributes_only?: boolean): Array<string>

Parameters

  • attributes_only?: boolean optional

Returns

Array<string>

public log(args?: Array<any>)

Parameters

  • args?: Array<any> optional

public toHTML(): string

Returns

string

public toHash(): any

Returns

any

public toString(include_functions?: boolean): string

Parameters

  • include_functions?: boolean optional

Returns

string

RenderContext: RenderContext

constructor(event_context: any): any

Parameters

  • event_context: any

Returns

any

public appendTo(selector: string): RenderContext

Parameters

  • selector: string

Returns

RenderContext

public collect(array: Array<any>, callback: Function, now?: boolean): RenderContext

Parameters

  • array: Array<any>
  • callback: Function
  • now?: boolean optional

Returns

RenderContext

public escapeHTML(s: string): string

Parameters

  • s: string

Returns

string

public h(s: string): string

Parameters

  • s: string

Returns

string

public has(key: string): boolean

Parameters

  • key: string

Returns

boolean

public interpolate(data: any, engine?: any, retain?: boolean): RenderContext

Parameters

  • data: any
  • engine?: any optional
  • retain?: boolean optional

Returns

RenderContext

public join(args?: Array<any>): string

Parameters

  • args?: Array<any> optional

Returns

string

public keys(attributes_only?: boolean): Array<string>

Parameters

  • attributes_only?: boolean optional

Returns

Array<string>

public load(location: string, options?: any, callback?: Function): RenderContext

Parameters

  • location: string
  • options?: any optional
  • callback?: Function optional

Returns

RenderContext

public loadPartials(partials?: any): RenderContext

Parameters

  • partials?: any optional

Returns

RenderContext

public log(args?: Array<any>)

Parameters

  • args?: Array<any> optional

public next(content: any)

Parameters

  • content: any

public partial(location: string, callback: Function, partials: any): RenderContext

Parameters

  • location: string
  • callback: Function
  • partials: any

Returns

RenderContext

public partial(location: string, data: any, callback: Function, partials: any): RenderContext

Parameters

  • location: string
  • data: any
  • callback: Function
  • partials: any

Returns

RenderContext

public prependTo(selector: string): RenderContext

Parameters

  • selector: string

Returns

RenderContext

public render(callback: Function): RenderContext

Parameters

  • callback: Function

Returns

RenderContext

public render(location: string, data: any): RenderContext

Parameters

  • location: string
  • data: any

Returns

RenderContext

public render(location: string, callback: Function, partials?: any): RenderContext

Parameters

  • location: string
  • callback: Function
  • partials?: any optional

Returns

RenderContext

public render(location: string, data: any, callback: Function): RenderContext

Parameters

  • location: string
  • data: any
  • callback: Function

Returns

RenderContext

public render(location: string, data: any, callback: Function, partials: any): RenderContext

Parameters

  • location: string
  • data: any
  • callback: Function
  • partials: any

Returns

RenderContext

public renderEach(location: string, name?: string, data?: any, callback?: Function): RenderContext

Parameters

  • location: string
  • name?: string optional
  • data?: any optional
  • callback?: Function optional

Returns

RenderContext

public replace(selector: string): RenderContext

Parameters

  • selector: string

Returns

RenderContext

public send(params?: Array<any>): RenderContext

Parameters

  • params?: Array<any> optional

Returns

RenderContext

public swap(callback?: Function): RenderContext

Parameters

  • callback?: Function optional

Returns

RenderContext

public then(callback: Function): RenderContext

Parameters

  • callback: Function

Returns

RenderContext

public toHTML(): string

Returns

string

public toHash(): any

Returns

any

public toString(include_functions?: boolean): string

Parameters

  • include_functions?: boolean optional

Returns

string

public trigger(name: any, data: any): any

Parameters

  • name: any
  • data: any

Returns

any

public wait()

Cache(app: any, options: any): any

Parameters

  • app: any
  • options: any

Returns

any

DataCacheProxy(initial: any, $element: any): any

Parameters

  • initial: any
  • $element: any

Returns

any

DefaultLocationProxy(app: any, run_interval_every: any): any

Parameters

  • app: any
  • run_interval_every: any

Returns

any

EJS(app: any, method_alias: any): any

Parameters

  • app: any
  • method_alias: any

Returns

any

Exceptional(app: any, errorReporter: any): any

Parameters

  • app: any
  • errorReporter: any

Returns

any

Flash(app: any): any

Parameters

  • app: any

Returns

any

Hoptoad(app: any, errorReporter: any): any

Parameters

  • app: any
  • errorReporter: any

Returns

any

Meld(app: any, method_alias: any): any

Parameters

  • app: any
  • method_alias: any

Returns

any

MemoryCacheProxy(initial: any): any

Parameters

  • initial: any

Returns

any

NestedParams(app: any): any

Parameters

  • app: any

Returns

any

OAuth2(app: any): any

Parameters

  • app: any

Returns

any

PathLocationProxy(app: any): any

Parameters

  • app: any

Returns

any

Pure(app: any, method_alias: any): any

Parameters

  • app: any
  • method_alias: any

Returns

any

PushLocationProxy(app: any): any

Parameters

  • app: any

Returns

any

Session(app: any, options: any): any

Parameters

  • app: any
  • options: any

Returns

any

Storage(app: any): any

Parameters

  • app: any

Returns

any

Template(app: any, method_alias: any): any

Parameters

  • app: any
  • method_alias: any

Returns

any

Title(): any

Returns

any

Tmpl(app: any, method_alias: any): any

Parameters

  • app: any
  • method_alias: any

Returns

any

addLogger(logger: any): any

Parameters

  • logger: any

Returns

any

log(args?: Array<any>): any

Parameters

  • args?: Array<any> optional

Returns

any