Usage: {{encode value}}
Description
{{encode}}
is a simple output helper which will encode a given string so that it can be used in a URL.
The most obvious example of where this is useful is shown in Casper’s post.hbs
, for outputting a twitter share link:
Without using the {{encode}}
helper on the post’s title, the spaces and other punctuation in the title will not be handled correctly.