Ghost/core/frontend/helpers/concat.js
Hannah Wolfe 35e3e0708c Moved helper proxy into a service
- The proxy is not a helper, we want the helpers folder to only include helpers
- The proxy is also meant to be the interface to Ghost for the helpers, and we want to enforce that
- This is a small step on the way
2020-04-08 17:22:44 +01:00

9 lines
233 B
JavaScript

const {SafeString} = require('../services/proxy');
module.exports = function concat(...args) {
const options = args.pop();
const separator = options.hash.separator || '';
return new SafeString(args.join(separator));
};