mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-21 01:41:46 +03:00
67b8fbf6cf
- 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
9 lines
183 B
JavaScript
9 lines
183 B
JavaScript
// # Raw helper
|
|
// Usage: `{{{{raw}}}}...{{{{/raw}}}}`
|
|
//
|
|
// Returns raw contents unprocessed by handlebars.
|
|
|
|
module.exports = function raw(options) {
|
|
return options.fn(this);
|
|
};
|