Skip to content
This repository has been archived by the owner on Sep 6, 2022. It is now read-only.

Can you pass arrays to templates #161

Open
sebmarion opened this issue Aug 5, 2015 · 1 comment
Open

Can you pass arrays to templates #161

sebmarion opened this issue Aug 5, 2015 · 1 comment

Comments

@sebmarion
Copy link

Hi,

I understand that we cannot use mixins in this implementation of Jade, so I am trying to use templates, but I have hit a stumbling block.
As you can see here: http://stackoverflow.com/questions/31817073/meteor-passing-array-parameter-to-template I am trying to pass arguments to a template to avoid having to recreate the same code many times.
To do this, I need to be able to pass an array to the template.

Is there anychance that this Jade implementation could help me here? I have tried a number of things but no success so far.

Thanks in advance.

Seb

@Buslowicz
Copy link

I know it's probably late to help you with the above, but I might leave some hint for future.
I am searching for the same thing and no luck as well. My workaround is to pass a string (concatenated array) and then split it inside onCreated function.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants