New: allow reading the extension of a template. Change the behaviour of $_self.parent, now it returns the parent template itself.