template leaves