You can pass in, out or in/out parameters to a template through local variables by taking advantage of nested translation scopes. You can access parameters with the %@<number>% variable.
<show> template <<< Class "%Code%" attributes : // Public %publicAttributes% // Protected %protectedAttributes% // Private %privateAttributes% >>>
<publicAttributes> template <<< .foreach_item(Attributes) .if (%Visibility% == +) %DataType %Code% .endif .next(\n) >>>
<protectedAttributes> template <<< .foreach_item(Attributes) .if (%Visibility% == #) %DataType %Code% .endif .next(\n) >>>
<privateAttributes> template <<< .foreach_item(Attributes) .if (%Visibility% == -) %DataType %Code% .endif .next(\n) >>>
To give you more readability and to enhance code reusability, these four templates can be written in just two templates by using parameters:
<show> template <<< Class "%Code%" attributes : // Public %attributes(+)% // Protected %attributes(#)% // Private %attributes(-)% >>>