QnaList > Groups > Play-Framework > Jan 2013
faq

[2.0.4] CoffeeScript Dependency Management

Is there a way to use an easy dependency management for coffeescript in play?
I found a code example here:
https://github.com/robfig/play-coffee
So I tried to set up a trivial coffee build environment. I created the following structure:
/app/assets/javascripts
�������������������� |--� main.scala.coffeee
�������������������� --� form.scala.coffeee
main.scala.coffeee:
@import form.coffee
@coffee.inline() {
...
��� 
}
�
form.scala.coffeee:
@coffee.inline() {
class Form
...
��� 
}
�
Result:
Parse error on line 3: Unexpected 'CLASS'
Is there a way I can fix this? Or any other easy way to set up this kind of trivial build environment for coffee?
I know coffee has a --require option for build, but I would like to declare the dependencies inside the coffee file (except the third party ones).
Thanks

asked Jan 8 2013 at 09:41

Bence's gravatar image



Related discussions

Tagged

Group Play-framework

asked Jan 8 2013 at 09:41

active Jan 8 2013 at 09:41

posts:1

users:1

Play-framework

©2013 QnaList.com