Okay, I have encountered one problem with eager_eval: recursive embed
evaluation.
If I have templateA.html:
lift:MySnippet eager_eval=true
lift:embed what=templateB
/lift:MySnippet
and templateB.html:
div class=foobar
...
lift:embed what=templateC
...
/div
then I get a somewhat
These exceptions are due to malformed XML.
lift:MySnippet eager_eval=true
lift:embed what=templateB
/lift:MySnippet
Should be
lift:MySnippet eager_eval=true
lift:embed what=templateB*/*
/lift:MySnippet
and
div class=foobar
...
lift:embed what=templateC
...
/div
Should be:
There's some parallels between Lift's templates and lazy evaluation.
In the examples below, the code inside the snippets is lazy, it
doesn't get evaluated until it is needed.
Maybe what we need is a way to programmatically force evaluation of
some template-code? Then if a snippet has an embed
Also nice would be ways to programmatically access template features,
e.g. embed(template) or snippet(Class:method), etc
--j
On Thu, Sep 11, 2008 at 2:55 PM, Jorge Ortiz [EMAIL PROTECTED] wrote:
There's some parallels between Lift's templates and lazy evaluation.
In the examples below, the
On Thu, Sep 11, 2008 at 3:49 PM, David Pollak [EMAIL PROTECTED] wrote:
If you are trying to embed a lift:embed .../ in the body of a snippet...
e.g.:
lift:MySnippet
lift:embed .../
/lift:MySnippet
That is indeed essentially what I was trying to do; in the application
I'm building I have
You mean like the eager_eval=true flag on snippets that I added 20
seconds ago. :-)
Jorge Ortiz wrote:
There's some parallels between Lift's templates and lazy evaluation.
In the examples below, the code inside the snippets is lazy, it
doesn't get evaluated until it is needed.
Maybe what we
Jorge Ortiz wrote:
Also nice would be ways to programmatically access template features,
e.g. embed(template) or snippet(Class:method), etc
Some of these are available on LiftSession, but it might be cool to add
this stuff to S to make it easer to call... wanna add that code?
--j
On
lift:MySnippet eager_eval=true
lift:embed...
/lift:MySnippet
will do the right thing (give Hudson about 2 hours to get the code into
the Lift Maven respository).
Kris Nuttycombe wrote:
On Thu, Sep 11, 2008 at 3:49 PM, David Pollak [EMAIL PROTECTED] wrote:
If you are trying to embed a
Very cool, this works exactly as I had hoped. I'll put together a bit
of documentation together on the wiki this evening.
Thanks again,
Kris
On Thu, Sep 11, 2008 at 4:52 PM, David Pollak [EMAIL PROTECTED] wrote:
Kris Nuttycombe wrote:
Wow... Thank you! I've been involved with some
Kris Nuttycombe wrote:
Very cool, this works exactly as I had hoped. I'll put together a bit
of documentation together on the wiki this evening.
Great. Documentation is good.
Thanks again,
You are welcome.
Kris
On Thu, Sep 11, 2008 at 4:52 PM, David Pollak [EMAIL PROTECTED]
10 matches
Mail list logo