Passing parameter values to sub template

10 views
Skip to first unread message

wat3r...@gmail.com

unread,
Nov 25, 2015, 11:21:39 AM11/25/15
to rythmengine
All,

I have a main template with an argument called 'name'. I'd like to pass the value of name to another template. I tried the following:

@args String name = "maria"

@invoke(my.template.two, @name)

In my.template.two, I have

@args String n = "joe"

<p>@n</p>

Running the main template - I get <p>joe</p> 

I was hoping it to be <p>maria</p>.

Am I missing something? Any ideas?

Thanks,

Maria

green

unread,
Nov 25, 2015, 2:18:56 PM11/25/15
to rythmengine

--
You received this message because you are subscribed to the Google Groups "rythmengine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rythmengine...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

wat3r...@gmail.com

unread,
Nov 25, 2015, 2:59:56 PM11/25/15
to rythmengine
I keep getting a blank page. Although, I got the menu with "All Demos", "@Rythm", "Fork me on GitHub", etc. I tried clicking on them, too, and nothing happened. 

I tried it on Firefox and Safari.

Maria

wat3r...@gmail.com

unread,
Nov 25, 2015, 3:05:37 PM11/25/15
to rythmengine
Nevermind. Sorry... It may just be my proxy. Thanks!!

green

unread,
Nov 25, 2015, 3:59:43 PM11/25/15
to rythm...@googlegroups.com
This is what I have:
pasted1

wat3r...@gmail.com

unread,
Nov 27, 2015, 11:20:28 AM11/27/15
to rythmengine
Thanks!! I'm seeing it now.

Maria
Reply all
Reply to author
Forward
0 new messages