When using PHP in a simple HTML page like:
<html>
<head>
</head>
<body>
</body>
</html>
I could use ob_start()
and ob_end_flush()
and then str_replace
the \n
to do something like:
<html><head></head><body></body></html>
saving the document size in order to make the webpage load faster.
I was just wondering if that is possible in the Ruby on Rails?