This Laravel 4 package provides a very simple and easy to use asset pipeline. It was heavily inspired by the Rails asset pipeline. We make use of the wonderful Assetic package to help with pre-compliation!
There seems to be an issue, when including templates to scripts, that the templates are included with line breaks instead of single line on some environments.
On my development machine (Windows 7, PHP 5.4.14), the JST templates are correctly on one line, but on my production server (Debian Linux, PHP 5.4.4-14+deb7u11), they are not compiled to single line. This causes a JavaScript error Uncaught SyntaxError: Unexpected token ILLEGAL, because JavaScript does not allow breaking strings on multiple lines.
There seems to be an issue, when including templates to scripts, that the templates are included with line breaks instead of single line on some environments.
On my development machine (Windows 7, PHP 5.4.14), the JST templates are correctly on one line, but on my production server (Debian Linux, PHP 5.4.4-14+deb7u11), they are not compiled to single line. This causes a JavaScript error
Uncaught SyntaxError: Unexpected token ILLEGAL
, because JavaScript does not allow breaking strings on multiple lines.Examples: dev (working):
prod (not working):
The asset pipeline settings are exactly the same on both envs (concat on, cache off).