If we have value 'cats', I want the substring 'at' (need to delete first and last letters). How can we accomplish that in a Nunjucks template?
You can do this using the JavaScript slice method, like so:
slice
{{cats.slice(1, -1)}}