J
janib
I have a slight problem. I'm not using resource laoding to get my
velocity templates, but instead I store the template code in component
and then I use Velocity.evaluate to render the output.
For a reason I've developed a directive in my pages that includes
another request inside a velocity template. For example:
<html>
....<div>#render( $content )
</html>
The problem is that when doing the next request (that is rendered with
the same mechanism) it gets evaluated BEFORE the main request is
finished evaluting. The result I was expecting was
<html>
....<div>< LOT's OF HTML HERE>
</html>
but I get
< LOT's OF HTML HERE>
<html>
....<div>
</html>
This behaviour is very obvious and logical when debugging the (my own
basic) MVC cycle.
The behaviour has made be rethink if I might need a ResourceLoader so
that i can get and use a Template instead and then use merge that is
the behaviour I want. This would force me to use a ResourceLoader that
is created Runtime with my component as the resource stream.
Is this very awkward or even possible?
/Jani
velocity templates, but instead I store the template code in component
and then I use Velocity.evaluate to render the output.
For a reason I've developed a directive in my pages that includes
another request inside a velocity template. For example:
<html>
....<div>#render( $content )
</html>
The problem is that when doing the next request (that is rendered with
the same mechanism) it gets evaluated BEFORE the main request is
finished evaluting. The result I was expecting was
<html>
....<div>< LOT's OF HTML HERE>
</html>
but I get
< LOT's OF HTML HERE>
<html>
....<div>
</html>
This behaviour is very obvious and logical when debugging the (my own
basic) MVC cycle.
The behaviour has made be rethink if I might need a ResourceLoader so
that i can get and use a Template instead and then use merge that is
the behaviour I want. This would force me to use a ResourceLoader that
is created Runtime with my component as the resource stream.
Is this very awkward or even possible?
/Jani