This looks like it quickly illustrates a need for HTML templating, maintaining N*M lines (where N is the number of views and M is the number of libraries) doesn't sound like a fun time.