HomePhabricator

Delay rendering of OOUI icons until banner rendering

Description

Delay rendering of OOUI icons until banner rendering

Whereas Mustache templating library calls toString on any objects
passed to it, the API doesn't. This change delays the generation of
OOUI IconWidget until the rendering of the banner itself.

Changes:
A new method expandIconTemplateOptions is now responsible for generating
html for icon and is done at parse time.

Other changes:
In icon definitions remove icon prefix since its unnecessary information
Update tests

Bug: T111304
Change-Id: I7f81678226f9fca48345e31a00a126e34b552675