mirror of
https://github.com/tests-always-included/mo.git
synced 2025-11-19 23:34:32 +01:00
Added @key loop accessor
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
<b>resque</b>
|
||||
<b>hub</b>
|
||||
<b>rip</b>
|
||||
<b>0 - resque</b>
|
||||
<b>1 - hub</b>
|
||||
<b>2 - rip</b>
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
{{#repo}}
|
||||
<b>{{.}}</b>
|
||||
<b>{{@index}} - {{.}}</b>
|
||||
{{/repo}}
|
||||
|
||||
4
tests/assoc-array.env
Normal file
4
tests/assoc-array.env
Normal file
@@ -0,0 +1,4 @@
|
||||
declare -A repo
|
||||
repo[resque]="Resque"
|
||||
repo[hub]="Hub"
|
||||
repo[rip]="Rip"
|
||||
3
tests/assoc-array.expected
Normal file
3
tests/assoc-array.expected
Normal file
@@ -0,0 +1,3 @@
|
||||
<b>hub - Hub</b>
|
||||
<b>rip - Rip</b>
|
||||
<b>resque - Resque</b>
|
||||
3
tests/assoc-array.template
Normal file
3
tests/assoc-array.template
Normal file
@@ -0,0 +1,3 @@
|
||||
{{#repo}}
|
||||
<b>{{@key}} - {{.}}</b>
|
||||
{{/repo}}
|
||||
Reference in New Issue
Block a user