[~ if(( r.skills && r.skills.sets && r.skills.sets.length ) ||
      ( r.languages && r.languages.length ) ) { ~]
%-------------------------------------------------------------------------------
%	SECTION TITLE
%-------------------------------------------------------------------------------
\cvsection{Skills}


%-------------------------------------------------------------------------------
%	CONTENT
%-------------------------------------------------------------------------------
\begin{cvskills}

[~ if (r.skills && r.skills.sets && r.skills.sets.length ) { ~]
[~ _.each( r.skills.sets, function(sks) { ~]
%---------------------------------------------------------
  \cvskill
    {[[ sks.name ]]} % Category
    {[~ print( sks.skills.join(', ') ) ~]} % Skills

[~ }); ~]
[~ } ~]

[~ if (r.languages && r.languages.length ) { ~]
%---------------------------------------------------------
  \cvskill
    {Languages} % Category
    {[~ print( _.map( r.languages, function(lang) { return lang.language; }).join(', ')) ~]} % Skills

[~ } ~]

%---------------------------------------------------------
\end{cvskills}
[~ } ~]
