Update templatemap_generator.php

Use the view path to overwrite the key path mapping (instead of library path)