Add namespace support to resource generator