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
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/
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