dwoo-project / dwoo

[UNMAINTAINED] php template engine
http://dwoo.org
GNU Lesser General Public License v3.0
167 stars 58 forks source link

Compilation Error [ Google Analytics Code ] #32

Closed qipt8 closed 8 years ago

qipt8 commented 9 years ago

Hi, I received an error message when compiling a file containing Google Analytics.

Fatal error: Uncaught exception 'Dwoo\Exception\CompilationException' with message 'Compilation error at line 46 in "file:C:\xampp\htdocs\html_page/template\layout.html" : Parse error in "i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-26210XXX-5', 'auto'); ga('send', 'pageview'); in C:\xampp\htdocs\html_page\lib\Dwoo\Compiler.php on line 1408

KrYpTeD974 commented 9 years ago

Try adding a space before } like this : push(arguments) }