Expose HTML generation