Adapt some snippets to PW 2.5 templates.