-
-
- {% r.employment.history.forEach( function( proj, idx, ar) { %}
- {% if( idx < 4 ) { %}
- {{ proj.position }}, {{ filt.link( proj.employer, proj.url ) }} {{ proj.safe.start.format('YYYY-MM') }} — {{ proj.safe.end.format('YYYY-MM') }}
- {{ proj.summary }}
- {% if( proj.highlights ) { %}
+ {{#each r.employment.history }}
+ {{#compare @index 4 operator="<"}}
+ {{ position }},
+ {{#if url }}
+ {{ employer }}
+ {{else}}
+ {{ employer }}
+ {{/if}}
+ {{formatDate safe.start 'YYYY-MM' }} — {{formatDate safe.end 'YYYY-MM' }}
+ {{ summary }}
+ {{#if highlights}}
- {% proj.highlights.forEach( function( high, idx, ar) { %}
- - {{ high }}
- {% }); %}
+ {{#each highlights}}
+ - {{ this }}
+ {{/each}}
- {% } %}
- {% } else { %}
+ {{/if}}
+ {{/compare}}
+ {{#compare @index 4 operator=">="}}
- {% if( idx === 4 ) { %}
- Previously... {{ r.employment.history[ r.employment.history.length - 1 ].safe.start.format('YYYY') }} — {{ proj.safe.end.format('YYYY') }}
- Prior to {{ r.employment.history[ 3 ].employer }}, I worked on a range of projects for companies large and small.
+ {{#compare @index 4 operator="=="}}
+ Previously...
+ Prior to {{ employer }}, I worked on a range of projects for companies large and small.
- {% } %}
+ {{/compare}}
+ - {{ position }}, {{ employer }}
- - {{ proj.position }}, {{ proj.employer }}
-
-
- {% if( idx === ar.length - 1 ) { %}
+ {{#if @last}}
- {% } %}
-
- {% } %}
- {% }); %}
-
-
+ {{/if}}
+ {{/compare}}
+ {{/each}}
-{% } %}
+{{/if}}
-
-
-{% if ( r.education && r.education.history ) { %}
+{{# if r.education}}