Generated views are splitted in several files

Makeing a new PR for #552 with resolved conflicts.