Skip to content

Documentation


Documentation / @blazetrails/actionpack / ActionView / AssetUrlHelperHost

Interface: AssetUrlHelperHost ​

Defined in: packages/actionview/dist/helpers/asset-url-helper.d.ts:11

Properties ​

config? ​

optional config?: { assetHost?: string | ((source, request?) => string); defaultAssetHostProtocol?: string; relativeUrlRoot?: string; } | null

Defined in: packages/actionview/dist/helpers/asset-url-helper.d.ts:12


request? ​

optional request?: { baseUrl: string; protocol: string; } | null

Defined in: packages/actionview/dist/helpers/asset-url-helper.d.ts:17

Methods ​

computeAssetPath() ​

computeAssetPath(source, options?): string

Defined in: packages/actionview/dist/helpers/asset-url-helper.d.ts:21

Parameters ​

ParameterType
sourcestring
options?AssetPathOptions

Returns ​

string


publicComputeAssetPath() ​

publicComputeAssetPath(source, options?): string

Defined in: packages/actionview/dist/helpers/asset-url-helper.d.ts:22

Parameters ​

ParameterType
sourcestring
options?AssetPathOptions

Returns ​

string