Play scala + scaml+ CoffeeScript

14 views
Skip to first unread message

iOio

unread,
Aug 22, 2011, 4:18:10 AM8/22/11
to Scalate
Hello,

Does someone manage or know how to include or execute coffee script in
a Play Scala - Scalate scaml project ?

James Strachan

unread,
Sep 8, 2011, 9:30:56 AM9/8/11
to sca...@googlegroups.com

Just use the :coffeescript filter...

!!!
%html
%head
%body
:coffeescript
sum = (a, b) -> a + b
foo = sum 1, 2

so treat "coffeescript" as a filter like javascript.

http://scalate.fusesource.org/documentation/jade.html
http://scalate.fusesource.org/documentation/scaml-reference.html#filters


--
James
-------
FuseSource
Email: ja...@fusesource.com
Web: http://fusesource.com
Twitter: jstrachan, fusenews
Blog: http://macstrac.blogspot.com/

Open Source Integration and Messaging

Reply all
Reply to author
Forward
0 new messages