Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

dynamic variable substitution #3

Closed
sendtopms opened this Issue Aug 30, 2010 · 2 comments

Comments

Projects
None yet
3 participants
Contributor

sendtopms commented Aug 30, 2010

I am planning to use erlydtl for one my application. Thanks for the great work. I like to see support for dynamic variable substitution -- thats L1 = [{a, one}, {b,two}]
L2 = [{one, "This is one"}, {two, "this is two"}]

where
I want to do {% for K, V in L1 %}

{{ L2.V}}
{% endfor %}

Please excuse for bad example but it explains what it should be there.

This is kind of done by zotonic team http://code.google.com/p/zotonic/
Is it possible to support this use case? this is going to be very powerful.

@saleyn saleyn referenced this issue Oct 23, 2012

Closed

locale #47

Contributor

evanmiller commented Jan 20, 2013

This is not present in Django and so will not be supported in ErlyDTL

@evanmiller evanmiller closed this Jan 20, 2013

Hi Evan, this has caught me out too. Could you suggest a solution? Would this be possible with a custom tag?

Many thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment