compileIntoDoms method