cant eval args in cache_key in <%block>

Issue #180 resolved
Michael Bayer
repo owner created an issue

Unfortunately there is another one. That one is related to <%block> tag (both anonymous and named).

FAILS: <%block cached="True" cache_key="${route_args.locale}"> WORKAROUND: <%block cached="True" cache_key="${context.get('route_args').locale}">

The bug happens when context variable (route_args) is first used in cache_key (and not anywhere else in template). I have similar logic using in <%page> directive and it works just fine there.