better leader support in extra
This commit is contained in:
@ -1,11 +1,11 @@
|
||||
%if 'test' in %%extra.ejabberd.description
|
||||
%if 'test' in %%extra.ejabberd.description.description
|
||||
contain test
|
||||
%end if
|
||||
%%len(%%extra.ejabberd.description)
|
||||
%if 'a' in %%extra.ejabberd.description
|
||||
%%len(%%extra.ejabberd.description.description)
|
||||
%if 'a' in %%extra.ejabberd.description.description
|
||||
contain a
|
||||
%end if
|
||||
%for %%description in %%extra.ejabberd.description
|
||||
%for %%description in %%extra.ejabberd.description.description
|
||||
leader: %%description
|
||||
follower: %%description.mode
|
||||
%if %%description <= %%description.mode
|
||||
@ -31,5 +31,5 @@ diff
|
||||
%set %%var = %%description.mode + %%description
|
||||
%%var
|
||||
%end for
|
||||
leader2: %%extra.ejabberd.description[0]
|
||||
follower2: %%extra.ejabberd.description[0].mode
|
||||
leader2: %%extra.ejabberd.description.description[0]
|
||||
follower2: %%extra.ejabberd.description.description[0].mode
|
||||
|
@ -1,11 +1,11 @@
|
||||
{% if 'test' in extra.ejabberd.description -%}
|
||||
{% if 'test' in extra.ejabberd.description.description -%}
|
||||
contain test
|
||||
{% endif -%}
|
||||
{{ extra.ejabberd.description|length }}
|
||||
{% if 'a' in extra.ejabberd.description -%}
|
||||
{{ extra.ejabberd.description.description|length }}
|
||||
{% if 'a' in extra.ejabberd.description.description -%}
|
||||
contain a
|
||||
{% endif -%}
|
||||
{% for description in extra.ejabberd.description -%}
|
||||
{% for description in extra.ejabberd.description.description -%}
|
||||
leader: {{ description }}
|
||||
follower: {{ description.mode }}
|
||||
{% if description <= description.mode -%}
|
||||
@ -29,5 +29,5 @@ diff
|
||||
{{ description + description.mode }}
|
||||
{{ description.mode + description }}
|
||||
{% endfor -%}
|
||||
leader2: {{ extra.ejabberd.description[0] }}
|
||||
follower2: {{ extra.ejabberd.description[0].mode }}
|
||||
leader2: {{ extra.ejabberd.description.description[0] }}
|
||||
follower2: {{ extra.ejabberd.description.description[0].mode }}
|
||||
|
Reference in New Issue
Block a user