Modified getParts() to make possible passing variables to the part (for rails-style partials)