recently I started to use Twig as template engine and I need to do something like this:
var getEmail = function(value){
$.get( {{ path( 'user_validate_email', { 'email': value } ) }} );
};
by doing this I get an error like "value" is not defined
Can anyone tell me the best way to do that.
Thnx