{"action":"opened","issue":{"url":"https://api.github.com/repos/tests-always-included/mo/issues/5","labels_url":"https://api.github.com/repos/tests-always-included/mo/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/tests-always-included/mo/issues/5/comments","events_url":"https://api.github.com/repos/tests-always-included/mo/issues/5/events","html_url":"https://github.com/tests-always-included/mo/issues/5","id":73340347,"number":5,"title":"associative array workaround","user":{"login":"patjlm","id":9153866,"avatar_url":"https://avatars.githubusercontent.com/u/9153866?v=3","gravatar_id":"","url":"https://api.github.com/users/patjlm","html_url":"https://github.com/patjlm","followers_url":"https://api.github.com/users/patjlm/followers","following_url":"https://api.github.com/users/patjlm/following{/other_user}","gists_url":"https://api.github.com/users/patjlm/gists{/gist_id}","starred_url":"https://api.github.com/users/patjlm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patjlm/subscriptions","organizations_url":"https://api.github.com/users/patjlm/orgs","repos_url":"https://api.github.com/users/patjlm/repos","events_url":"https://api.github.com/users/patjlm/events{/privacy}","received_events_url":"https://api.github.com/users/patjlm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-05T15:07:35Z","updated_at":"2015-05-05T15:07:35Z","closed_at":null,"body":"Hello,\r\nWould it be possible to workaround the associative array question with templates like: \r\n```bash\r\n#!/bin/bash\r\n\r\ncd \"$(dirname \"$0\")\" # Go to the script's directory\r\n\r\nexport PREFIX_ARRAY=( P1 P2 )\r\nexport P1_NAME=p1name\r\nexport P1_VALUE=p1value\r\nexport P2_NAME=p2name\r\nexport P2_VALUE=p2value\r\n\r\ncat << EOF | . ../mo\r\nHere are the items in the array:\r\n{{#PREFIX_ARRAY}}\r\n  {{.}}:\r\n    * name: {{_NAME}}\r\n    * value: {{_VALUE}}\r\n{{/PREFIX_ARRAY}}\r\nEOF\r\n```\r\n\r\nThis would mean that {{_NAME}} would trigger a lookup for ${P1_NAME} and fallback to ${_NAME}\r\n"}}