[layout-views] Compile and use assets of templates