Moodle course based format html builder