Apply flatty template