Skip to content

Instantly share code, notes, and snippets.

@paraboul
Created December 23, 2010 22:44
Show Gist options
  • Save paraboul/753649 to your computer and use it in GitHub Desktop.
Save paraboul/753649 to your computer and use it in GitHub Desktop.
<html>
<head></head>
<body>
<?ape
var x = 'foo' // some javascript
Ape.async('<img src="load.gif" />', Ape.mysql.query('SELECT foo FROM bar', function(res) {
echo(res[0].foo + ' yeahhhh');
}))
?>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment