-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Не работает с requirejs #25
Comments
You can resolve this issue, modify end of file extra/coffee-script.js:
This modification force assign to window object - CoffeeScript, that necessary for ECT Ты можешь пофиксить это, изменив конец файла extra/coffee-script.js следующим образом:
Данное изменение в любом случае даст присвоить объекту window - CoffeeScript, что нужно для нормальной работы ECT |
Hey, it's issue not resolved. And trick with coffee not right. Ect should natively support this situation. Рано закрывать эту проблему. Трюк с coffee - временное решение. Ect должен сам разруливать эту ситуацию с requirejs и coffee. |
Add pull request #37
This guarantees, that coffee-script will load before ect Добавил pull request #37
Это гарантирует, что coffee-script будет загружен до ect |
Now ECT defined lowercase |
* commit '0edfa8c4283153128363b53878e1bbdc4e6211c5': Fix bower config Fix typo Fix typo in bower.json Add bower integration Fix for baryshev#9 Fix for baryshev#16 Possible fix for baryshev#16 update README.md example remove .ect suffix when in template include and extend remove suffix when res.render Clear cache public API Fix for unescaped regular expressions baryshev#47 Remove node_modules RequireJS support. Fix baryshev#25. Update CoffeeScript version Fix compilation error Command line compiler Conflicts: lib/ect.js
'libs/coffee-script': {
exports: 'CoffeeScript',
init: ()->
return window.CoffeeScript = this
},
'libs/ect': {
deps: ['libs/coffee-script'],
init: () ->
return ECT(root: '/assets/templates', ext: '.ect')
},
Ошибка Uncaught TypeError: Cannot call method 'compile' of undefined in /assets/templates/index.ect
The text was updated successfully, but these errors were encountered: