mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
8c03c3a0df
- allows for concatenating strings using helpers and variables like {{concat (url) "?query=" slug}}
8 lines
223 B
JavaScript
8 lines
223 B
JavaScript
const {SafeString} = require('./proxy');
|
|
|
|
module.exports = function concat(...args) {
|
|
const options = args.pop();
|
|
const separator = options.hash.separator || '';
|
|
|
|
return new SafeString(args.join(separator));
|
|
};
|