1. You must implement the interface IController
2. Non-static class
3. The class name must end with controller
<%: "<h1>aa</h1>"%>bbb
display:
<h1>aa</h1>bbb
<%="<h1>aa</h1>"%>cc
display:
aa
cc
Reproduced in: https: //www.cnblogs.com/DJYBlog/p/4180489.html