views:

132

answers:

2

I'm using Play frameword and play-scalate plugin.

The default demo of play-scalate provided is only ".ssp", but what I want to use is ".scaml". I create a "default.scaml", but I don't know how to include the inner views.

Maybe my description is not clear, what I want to do is:

translate the the layout "main.html" to "default.scaml".

The content of "main.html" is:

<html>
    <head>
    </head>
    <body>
        #{doLayout /}
    </body>
</html>

I don't know how to translate #{doLayout /}. Thanks in advance.

+1  A: 

It should be:

-@ var body: String 
-@ var title: String = "Some Default Title"

%html
  %head= title
  %body
    %p hello, everyone
    != body
Freewind
A: 

you may try asking in the google list, they are usually very responsive...

http://groups.google.com/group/play-framework

opensas
I tried, but I didn't get a quick answer. Maybe few people use scaml.
Freewind