mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 22:43:30 +03:00
8c03c3a0df
- allows for concatenating strings using helpers and variables like {{concat (url) "?query=" slug}}
9 lines
223 B
JavaScript
9 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));
|
|
};
|