html class

Replace pipe for widget to class, and remove pipe of generatehtml.

This class create a piece of html(only widget part).