The templex approach in Lagrangian Analysis