Made the partials function much smarter. Now it allows passing variables as the 2nd parameter and can optionally return the data that it parses