Modular template-driven UI library