render code and created partials