GitHub Download

{{concatenate}} helper

This helper is very similar to the {{join}} helper, but it doesn't have the first param. It always returns all arguments connected into one string.

Syntax:

{{concatenate value1 value2 value3}}

Example:

{{concatenate "a=" 1 "&b=3"}} 

Example output:

"a=1&b=3"

This helper is especially useful if you need to combine theme options into string:

{{getPostsByTags (concatenate "count=" @config.post.additionalParam)}}

Subscribe

Get the latest Publii news, updates and more delivered directly to your email inbox

You can change your mind at any time by clicking the unsubscribe link in the footer of any email you receive from us, or by contacting us at contact@tidycustoms.net. By clicking below, you agree that we may process your information in accordance with our Privacy Policy.