Hi everyone,
I'm using the following structure in order to do something depending on whether a template file is found or not:
require ( [text!filename],
function(file) { console.log('success') },
function(err) { console.log('error') } );
This works fine on chrome but, when on a Cordova/Phonegap app, it always returns 'success', even if the file does not exist.