开发者

Using Lift's snippet processing outside of Lift

开发者 https://www.devze.com 2023-04-12 06:50 出处:网络
Is there a way to use Lift\'s snippet processing outside the nor开发者_如何学JAVAmal request handling process? I know I can call LiftSession.findAndProcessTemplate, but that obviously requires an inst

Is there a way to use Lift's snippet processing outside the nor开发者_如何学JAVAmal request handling process? I know I can call LiftSession.findAndProcessTemplate, but that obviously requires an instance of LiftSession. Is there a way to do that without LiftSession as long as I only use stateless snippets? Alternatively, is there a way to get an "empty" instance of LiftSession?


Sure, you can use net.liftweb.http.S.runTemplate:

http://scala-tools.org/mvnsites/liftweb-2.4-M4/#net.liftweb.http.S

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号