JC: added @erb_code and if loop in views.
JC: added @view_in_config to views. spec passes.