Some of the builtin Nunjucks filters exist in a ERB (well, Rails) context, but with a different name.
Add a way to alias the filter names, only doing safe => raw for now, as that's what we're needing at the moment - and is closer to a template language level construct than a filter imo.
This duplicates some similar behaviour in the liquid templates. I didn't want to generalise quite yet, but could be built on in the future.
Some of the builtin Nunjucks filters exist in a ERB (well, Rails) context, but with a different name.
Add a way to alias the filter names, only doing
safe
=>raw
for now, as that's what we're needing at the moment - and is closer to a template language level construct than a filter imo.This duplicates some similar behaviour in the liquid templates. I didn't want to generalise quite yet, but could be built on in the future.