* This function does the same thing as the View::element and return the rendered element.