If the requirement is reducing the size of the html response, modern browsers really don't need this extra step. However I think you need to do this from the server, rather than worrying about it in the source code.
mod_substitute will replace line breaks with spaces, if you configure it properly. http://httpd.apache.org/docs/2.4/mod/mod_substitute.html
also take a look at the mod_deflate for apache, this will compress the page before being sent to the client, if you're using apache http://httpd.apache.org/docs/current/mod/mod_deflate.html
astroanu said:
If the requirement is reducing the size of the html response, modern browsers really don't need this extra step. However I think you need to do this from the server, rather than worrying about it in the source code.
mod_substitute will replace line breaks with spaces, if you configure it properly. http://httpd.apache.org/docs/2.4/mod/mod_substitute.html
also take a look at the mod_deflate for apache, this will compress the page before being sent to the client, if you're using apache http://httpd.apache.org/docs/current/mod/mod_deflate.html
Ah that's nice to know that those exist. While it would probably work fine on my local environment, I don't think I have to ability to adjust those settings on my shared host where I'm uploading this application to. So it's good to know that that's also a way to do it. Compressing the page in general probably fixes this problem.
But I do wonder why various {{}} under each other does generate new lines in the source rather than just parsing them under each other.
But well thank you for the explenation!
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community