fix on directive, add if directive, include eggs-html renderer