Suppose i've the php variable
$key which i wish to assign to some global javascipt variable. Not things i do is incorporated in the mind tag make use of this type of code.
window.key = <?php echo $key; ?>;
But this way the api secrets are available within the mind tag. I believe you get the drift. Thanks!
FYI: I'm employed in wordpress. So, if there's any wordpress specific solution you're most welcome!
attempt to request the important thing via ajax.
however it it's still visible at runtime. an individual using firebug could look into the answer from the request and may also display the variable via console.sign in the firebug-console.