[~ if (r.writing && r.writing.length ) { ~]
%-------------------------------------------------------------------------------
%	SECTION TITLE
%-------------------------------------------------------------------------------
\cvsection{Writing}


%-------------------------------------------------------------------------------
%	CONTENT
%-------------------------------------------------------------------------------
\begin{cventries}
[~ _.each( r.writing, function(wri) { ~]
%---------------------------------------------------------
  \cventry
    {[~ print( wri.publisher ? wri.publisher.name : 'Unknown' ) ~]} % Role
    {[[ wri.title ]]} % Title
    {[[ wri.url ]]} % Location
    {[[ h.date(wri.date) ]]} % Date(s)
    {[~ if (wri.highlights && wri.highlights.length) { ~]
      \begin{cvitems} % Description(s)
[~ print( h.pad( wri.highlights.map( function(h) { return '\\item {' + h + '}' }), -8 ) ) ~]
      \end{cvitems}
    [~ } ~]}

[~ }); ~]
%---------------------------------------------------------
\end{cventries}
[~ } ~]
