Question: why razor view engine is lightweight?
Answer: Razor has a syntax that is very compact and helps us to reduce typing. ... The Razor View Engine prevents Cross Site Scripting (XSS) attacks by encoding the script or HTML tags before rendering to the view. A web form View engine does not prevent Cross Site Scripting (XSS) attack.