[Lift] Re: Rendering a template bit

2009-11-05 Thread harryh
What you want can be done with very basic usage of snippets (the way that templates interface with code in Lift). In your template: lift:YourSnippet.foo/ Then in YourSnippet.scala: class YourSnippet { def foo(xhtml: NodeSeq) = Site.render() } Make sure render returns a NodeSeq. -harryh

[Lift] Re: Rendering a template bit

2009-11-05 Thread DFectuoso
The thing is that i want the NodeSeq to reside in a html file, not inside the model. On Nov 5, 10:20 pm, harryh har...@gmail.com wrote: What you want can be done with very basic usage of snippets (the way that templates interface with code in Lift).  In your template: lift:YourSnippet.foo/

[Lift] Re: Rendering a template bit

2009-11-05 Thread Jeppe Nejsum Madsen
DFectuoso santiago1...@gmail.com writes: The thing is that i want the NodeSeq to reside in a html file, not inside the model. Have a look at TemplateFinder.findAnyTemplate, it will load the template from file. If you want to process a complete template, look at S.runTemplate /Jeppe