0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00
ghost/core/frontend/helpers/raw.js
Joseph Coffland 67b8fbf6cf Added raw handlebars helper
- Allows using the 4-bracket raw block syntax e.g: {{{{raw}}}}{{{{/raw}}}}
- This allows you to include handlebars inside a template that is not compiled and executed
- The common usecase is if you want to include client-side handlebars templates inside server-side ones
2020-04-06 17:26:50 +01:00

8 lines
183 B
JavaScript

// # Raw helper
// Usage: `{{{{raw}}}}...{{{{/raw}}}}`
//
// Returns raw contents unprocessed by handlebars.
module.exports = function raw(options) {
return options.fn(this);
};