1. Handlebars Helpers
  2. Stubby Short Link

Handlebars Helpers

Stubby Short Link

Returns a HTML Short Link for any given URL.

Stub.by is a URL shortening service that allows you to create short links for any given URL. This helper will return a HTML Short Link for any given URL.

INFO

IMPORTANT:
Stub.by links are valid for a default of 30 days, you need to set the TTL to 0 to make the permanent

See also: Stubby Short URL

Example definition:

loading...

Substituted definition

loading...

Advanced usage

You can optionally add these extra arguments

  • TTL: (Time To Live) the amount of seconds that the shortcode should exist for. Default is 30 days.
  • Max Hits: The maximum hits allowed for the shortcode before it expires.

Example definition:

loading...

Substituted definition

loading...

The above shortcode example will remain active for 10 minutes or until it has been accessed 5 times, which ever condition is met first will expire the shortcode.