Saltearse al contenido

lib/pathGenerators

Esta página aún no está disponible en tu idioma.

function ensureHtmlExtension(path: string): string

Defined in: studiocms/packages/studiocms/src/lib/pathGenerators.ts:65

Add ‘.html’ extension to a path.

string

string


function ensureLeadingAndTrailingSlashes(href: string): string

Defined in: studiocms/packages/studiocms/src/lib/pathGenerators.ts:29

Ensure the passed path starts and ends with slashes.

string

string


function ensureLeadingSlash(href: string): string

Defined in: studiocms/packages/studiocms/src/lib/pathGenerators.ts:15

Ensure the passed path starts with a leading slash.

string

string


function ensureTrailingSlash(href: string): string

Defined in: studiocms/packages/studiocms/src/lib/pathGenerators.ts:22

Ensure the passed path ends with a trailing slash.

string

string


function fileWithBase(path: string): string

Defined in: studiocms/packages/studiocms/src/lib/pathGenerators.ts:9

Get the a root-relative file URL path with the site’s base prefixed.

string

string


function pathWithBase(path: string): string

Defined in: studiocms/packages/studiocms/src/lib/pathGenerators.ts:2

Get the a root-relative URL path with the site’s base prefixed.

string

string


function stripHtmlExtension(path: string): string

Defined in: studiocms/packages/studiocms/src/lib/pathGenerators.ts:59

Remove the extension from a path.

string

string


function stripLeadingAndTrailingSlashes(href: string): string

Defined in: studiocms/packages/studiocms/src/lib/pathGenerators.ts:51

Ensure the passed path does not start and end with slashes.

string

string


function stripLeadingSlash(href: string): string

Defined in: studiocms/packages/studiocms/src/lib/pathGenerators.ts:37

Ensure the passed path does not start with a leading slash.

string

string


function stripTrailingSlash(href: string): string

Defined in: studiocms/packages/studiocms/src/lib/pathGenerators.ts:44

Ensure the passed path does not end with a trailing slash.

string

string