summaryrefslogtreecommitdiff
path: root/templates/city.md.erb
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2024-05-24 12:44:26 -0600
committermo khan <mo@mokhan.ca>2024-05-24 12:44:26 -0600
commit2801e040bca9351d0a1fbcf05fb277c98f68c59b (patch)
treec00449a664df9cb811c2ce93de39f524d4b518f1 /templates/city.md.erb
parentb5076bfc226cf738aa715abd9cd2ca6d58e89a42 (diff)
rename template
Diffstat (limited to 'templates/city.md.erb')
-rw-r--r--templates/city.md.erb11
1 files changed, 11 insertions, 0 deletions
diff --git a/templates/city.md.erb b/templates/city.md.erb
new file mode 100644
index 0000000..63babd1
--- /dev/null
+++ b/templates/city.md.erb
@@ -0,0 +1,11 @@
+# Calgary (YYC)
+
+| Sector | Name | Total | Male | Female | Non-binary | Dogs | Cats |
+| ------ | ---- | ----- | ---- | ------ | ---------- | ---- | ---- |
+<%- self.sort.each do |community| -%>
+| <%= community[:sector] %> | [<%= community.name %>][<%= community.name.parameterize %>] | <%= community[:res_cnt] %> | <%= community[:male_cnt] %> (<%= community.percent(:male_cnt) %>%) | <%= community[:female_cnt] %> (<%= community.percent(:female_cnt) %>%) | <%= community[:other_cnt] %> (<%= community.percent(:other_cnt) %>%) | <%= community[:dog_cnt] %> | <%= community[:cat_cnt] %> |
+<%- end -%>
+
+<%- self.sort.each do |community| -%>
+[<%= community.name.parameterize %>]: ./<%= community[:sector].parameterize %>/<%= community.name.parameterize %>/README.md
+<%- end -%>