Export functions
view_static: use correct environment