Pattern for handling dynamic inclusion of static resources