Add to_static_html decorator