I'm using Hack, which can be found at hacklang.org.
Why doesn't the following code :
<?hh
$message = "Hey, lol.";
?>
<!doctype html>
<html lang="en-us">
<head>
<title>title</title>
</head>
<body>
<?= $message ?>
</body>
</html>
output the following text?
Hey, lol.
There are no errors in the error.log file. And when I "View source", it's blank, just like the page itself.
Edit:
Guys, please see the code below in response to your answers. If you visit hacklang.org (see hack tag in this question :) and see the tutorial section on the main page, click through to the Exercise 3 of.. and it clearly shows that you're supposed to use hh and not php to define a hack document:
<?hh
// Hack functions are annotated with types.
function my_negation(bool $x): bool {
return !$x;
}