API Reference

util.Permalink Class

Description

Permalink parser.

Constructor

util.Permalink

(rule, [options])

Permalink parser.

Parameters

Methods

parse

(str) Object

Parses the string and returns an object.

Parameters

Returns

stringify

(data) String

Serializes the data to the permalink.

Parameters

Returns

test

(str) Boolean

Tests if the string matches the permalink.

Parameters

Returns

Properties

params

Parameters of permalink.

regex

Regular expression of permalink.

rule

Permalink rule.