Is there are any lift + scalate full example?

173 views
Skip to first unread message

Xuefeng Wu

unread,
Mar 27, 2011, 10:16:06 PM3/27/11
to lif...@googlegroups.com
Hi lifter
Is there are any lift + scalate full example?
There are hello scalate example, but it's too simple to learn.
I want to learn how integrate lift and scalate, for example, lift comet, lift form ,lift snippet and more.

David Pollak

unread,
Mar 27, 2011, 10:40:06 PM3/27/11
to lif...@googlegroups.com

You asked this very same question 1 day ago... the answer has not changed in 24 hours:

The same way as with any other Lift templating mechanism.

Snippets can be invoked:

<div class="lift:MySnippet">...</div>

and Comet is just a snippet:

<div class="lift:comet?type=MyCometThing">...</div>
 

 

--
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to lif...@googlegroups.com.
To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.



--
Lift, the simply functional web framework http://liftweb.net

Xuefeng Wu

unread,
Mar 28, 2011, 4:48:00 AM3/28/11
to lif...@googlegroups.com, David Pollak
I add the hello snippet in the index.scaml
   <div class="lift:helloWorld.howdy">
      Welcome to scalate at <span id="time">The current time</span>
    </div>

It failed.
HTTP ERROR 500

Problem accessing /. Reason:

    Inconsistent indent level detected: intended too shallow at 2.4
Caused by:

org.fusesource.scalate.InvalidSyntaxException: Inconsistent indent level detected: intended too shallow at 2.4
    at org.fusesource.scalate.scaml.ScamlParser.parse(ScamlParser.scala:375)
    at org.fusesource.scalate.scaml.ScamlCodeGenerator.generate(ScamlCodeGenerator.scala:668)
    at org.fusesource.scalate.TemplateEngine.compileAndLoad(TemplateEngine.scala:684)

David Pollak

unread,
Mar 28, 2011, 9:28:14 AM3/28/11
to lif...@googlegroups.com
But this is not valid Scaml syntax, it's HTML.  Do whatever you need to do to get class="lift:HelloWorld.howdy" into Scaml.
Reply all
Reply to author
Forward
0 new messages