Convert inline widget HTML to a Mustache template