Ah...so simple and somehow I never though of it :)
Thanks, I will try it out shortly
Cheers
On Mon, Dec 2, 2013 at 8:38 PM, Lance Java wrote:
> Yup...
>
>
> On 2 December 2013 19:36, Boris Horvat wrote:
>
> > Let me try to be a bit more specific
> >
> > I want to have a component that I will
Yup...
On 2 December 2013 19:36, Boris Horvat wrote:
> Let me try to be a bit more specific
>
> I want to have a component that I will initialize like this
>
>
>
> asdasd
>
> and then in the MyComponent.tml I have something like
>
> ---
>
>
>
> sometex
Let me try to be a bit more specific
I want to have a component that I will initialize like this
asdasd
and then in the MyComponent.tml I have something like
---
sometext
---
So if I add
@Parameter
Block myb
As Kristian has said, this can normally be managed with block & delegate.
Another way is to declare (or TypeCoerce) your block as a RenderCommand.
You can return a RenderCommand from any render phase method.
A RenderCommand can delegate to other RenderCommands. Note that rendering
mimics tail rec
Yes it is possible. Usually you use a Delegate component to render a Block.
Cheers
Kris
Am 01.12.2013 23:53 schrieb "Boris Horvat" :
> Is there any way to pass a block as a parameter and then to render it?
>
> I have checked a tree component and I have seen it renders it manually. Is
> there any
Is there any way to pass a block as a parameter and then to render it?
I have checked a tree component and I have seen it renders it manually. Is
there any way to achieve this by simply passing few parameters around?
Cheers
--
Sincerely
*Boris Horvat*