mustache - GRMustache how to render a parent variable inside a loop? -
this question using grmustache in ios application. although documentation links standard mustache docs.
i looping through mustache data , in root of page there variable called #noanimation. variable works outside of loop not work inside loop. how can parent variable inside loop.
i have tried {{../noanimation}} , rendering engine breaks.
{{#noanimation}}will work{{/}} {{# withposition(data) }} <div class="title">{{ title }}</div> {{#noanimation}}will not work{{/}} {{/ withposition(data) }}
grmustache version
/** * major component of grmustache version * * @since v1.0 */ #define grmustache_major_version 6 /** * minor component of grmustache version * * @since v1.0 */ #define grmustache_minor_version 7 /** * patch-level component of grmustache version * * @since v1.0 */ #define grmustache_patch_version 4
Comments
Post a Comment