adding abillity to independently compile views for use in closure