use compileIntoDoms method in web pages