I have this simple code that tries to print many tab_model objects in a single html file. For some reason, each model gets its own html file and the main file remains empty.