Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refs TryGhost#2459 This includes updating handlebars to v4 as well as other fixes which will introduce breaking changes to the theme API: From express-hbs: - partials must now use the `.hbs` extension, the same as templates From handlebars: - Depthed paths are now conditionally pushed on to the stack. If the helper uses the same context, then a new stack is not created. This leads to behavior that better matches expectations for helpers like if that do not seem to alter the context. Any instances of ../ in templates will need to be checked for the correct behavior under 4.0.0. In general templates will either reduce the number of ../ instances or leave them as is. See TryGhost#1028. - The = character is now HTML escaped. This closes a potential exploit case when using unquoted attributes, i.e. <div foo={{bar}}>. In general it's recommended that attributes always be quoted when their values are generated from a mustache to avoid any potential exploit surfaces.
- Loading branch information