%namespace name="doc" file="_doc.tmpl"/> <%! def dash_to_underscore(string): return '_'.join(string.split('-')) def dash_to_camel(string): words = string.split('-') return ''.join([words[0]] + [word.title() for word in words[1:]]) %> % if getattr(node, 'properties', []):
${p.name}
, ${p.name | dash_to_underscore}
,
${p.name | dash_to_camel}
${formatter.format_type(p.type)}