Adding 'replacer' function for simple content replacement only for specified paths