laracasts / PHP-Vars-To-Js-Transformer

Transform PHP data to JavaScript.
https://packagist.org/packages/laracasts/utilities
MIT License
2.21k stars 219 forks source link

<!DOCTYPE html> #62

Closed victorgdb closed 9 years ago

victorgdb commented 9 years ago

The javascript is displayed at the beginning of the file, so before the doctype. Is there a way to put the javascript elsewhere?

Because of this, my DOCTYPE is just ignored.

Thanks

sukonovs commented 9 years ago

You can bind it to some partial in footer. Not master template.

pbhanu1994 commented 9 years ago

Put the Javascript file just above the body tag and you are good to go :+1: