Fix for the plugin to not parse the file map if cachign is enabled
Should json encode the templates
fixed keymap
file name generation