liny: clear expand-template