mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-24 11:22:19 +03:00
2c6d43a0c0
no issue - Split theme helpers into individual files for each - Do the same for tests - Have utils to share some things between them - Move assetHash onto config
14 lines
345 B
JavaScript
14 lines
345 B
JavaScript
// # Title Helper
|
|
// Usage: `{{title}}`
|
|
//
|
|
// Overrides the standard behaviour of `{[title}}` to ensure the content is correctly escaped
|
|
|
|
var hbs = require('express-hbs'),
|
|
title;
|
|
|
|
title = function () {
|
|
return new hbs.handlebars.SafeString(hbs.handlebars.Utils.escapeExpression(this.title || ''));
|
|
};
|
|
|
|
module.exports = title;
|