     
            <h2 id='writing-templates' class='heading'>Writing templates</h2>

<p>Sourcery supports templates written in Stencil, Swift and even JavaScript.</p>

<p>Discovered types can be accessed in templates via global context with following properties:</p>

<ul>
<li><code>types: Types</code> - access collections of types, i.e. <code>types.implementing.AutoCoding</code> (<code>types.implementing[&quot;AutoCoding&quot;]</code> in swift templates). See <a href="https://cdn.rawgit.com/krzysztofzablock