commit | 7886e12ea2bba19a1677f75d778572a7b04e673e | [log] [tgz] |
---|---|---|
author | Sapan Bhatia <gwsapan@gmail.com> | Wed May 17 11:19:39 2017 +0200 |
committer | Sapan Bhatia <sapan@onlab.us> | Thu May 18 15:35:26 2017 -0700 |
tree | 519abeaadd579606d866191506ae63d221fb127e | |
parent | 2e69afb247c0f78b3112026124cce18499663bc1 [diff] [blame] |
CORD-1335: Support pluralization via xproto + supporting unit test Change-Id: Ie3c0a5a3354d2846427d51c4675e53e855d25bde
diff --git a/xos/genx/tool/plurals.xtarget b/xos/genx/tool/plurals.xtarget new file mode 100644 index 0000000..9cdd6c6 --- /dev/null +++ b/xos/genx/tool/plurals.xtarget
@@ -0,0 +1,6 @@ +{% for m in proto.messages %} +Model {{ m.name }}: +{% for f in m.fields -%} +The plural of {{ f.name}} is {{ xproto_pluralize(f) }}. +{% endfor %} +{%- endfor %}