Passing local variables to Erlydtl block
Posted
by Justin
on Stack Overflow
See other posts from Stack Overflow
or by Justin
Published on 2010-03-29T08:40:39Z
Indexed on
2010/03/29
8:43 UTC
Read the original article
Hit count: 476
Hi,
I've got a block of erlydtl code which I use repeatedly and would like to abstract to some kind of block / partial template. The issue is that I need to pass the block a local variable. This is possible with Rails partial templates; it looks like it's possible with Django's blocks [albeit with some kind of Python hackery]; I'm wondering if it's possible with Erlydtl [Erlang implementation of Django templates]
Ideas ?
Thanks you.
© Stack Overflow or respective owner