Skip to content
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

fix #25 #37

Closed
wants to merge 1 commit into from
Closed

fix #25 #37

wants to merge 1 commit into from

Conversation

darky
Copy link

@darky darky commented Sep 29, 2013

No description provided.

@darky
Copy link
Author

darky commented Sep 29, 2013

This potentially can raise error, if *.ect template will start load before coffee-script loaded.
So you can tune your require.config for avoid this situation:

  • add in require.config.paths - "ect": "<relative path to ect>"
  • add in require.config.paths - "coffee-script": "<relative path to coffee-script>"
  • add in require.config.shim - "ect" : {"deps": ["coffee-script"]}

This guarantees, that coffee-script will load before ect


Теоритечески может возникнуть ошибка, если *.ect шаблоны начнут грузиться до того, как coffee-script был загружен. Но вы можете поправить ваш require.config для избежания этой ситуации.

  • Добавьте в require.config.paths - "ect": "<относительный путь до ect>"
  • Добавьте в require.config.paths - "coffee-script": "<относительный путь до coffee-script>"
  • Добавьте в require.config.shim - "ect" : {"deps": ["coffee-script"]}

Это гарантирует, что coffee-script будет загружен до ect

@baryshev
Copy link
Owner

baryshev commented Oct 5, 2013

Included in 0.5.4 with additional registering of ect module.

@baryshev baryshev closed this Oct 5, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants