nunjucks doesn't include truncate, so we need a helper for this I think.