{% set lb = '{' %}
{% set rb = '}' %}
\documentclass[10pt]{article} %Sets the default text size to 11pt and class to article.

\usepackage{tabu}

\usepackage[colorlinks=true]{hyperref}

\hoffset=0.0in
\voffset=0.0in

\textwidth=6.25in
\textheight=9.0in

\topmargin=0.0in

\oddsidemargin=0.0in
\evensidemargin=0.0in

\marginparwidth=0.0in
\marginparsep=0.0in

\headheight=0pt
\headsep=0pt 

\newcommand{\sectionheader}[1] {
\vskip \medskipamount
\noindent\rule{0.2in}{0.4pt}{\Large \bf #1}\hrulefill
\vskip \medskipamount
}

\newenvironment{myitemize}
{ \begin{itemize}
    \setlength{\itemsep}{0pt}
    \setlength{\parskip}{0pt}
    \setlength{\parsep}{0pt}
}
{ \end{itemize}
}

\begin{document}
\centerline{
  \LARGE\textbf{ {{ basic.name }} }
}

{% set count=basic|length-1 %}
{% if count > 0 %}
  \vskip \bigskipamount
  {% if count == 1 %}
\noindent\begin{tabu*} to \textwidth { @{} X[1,c] }
  {% elif count == 2 %}
\noindent\begin{tabu*} to \textwidth { @{} X[1,c] X[1,l] }
  {% elif count == 3 %}
\noindent\begin{tabu*} to \textwidth { @{} X[1,l] X[1,c] X[1,r] }
  {% endif %}
  {% if "contact" in basic and basic.contact|length > 0 %}
    {% if "email" in basic.contact %}
\href{{lb}}mailto:{{basic.contact.email}}{{rb}}{{lb}}{{basic.contact.email}}{{rb}}\par
    {% endif %}
    {% if "phone" in basic.contact %}
{{basic.contact.phone}}\par
    {% endif %}
    {% if "address" in basic or "websites" in basic %}
&
    {% endif %}
  {% endif %}
  {% if "address" in basic %}
    {% for line in basic.address %}
  {{line}} \par
    {% endfor %}
    {% if "websites" in basic %}
&
    {% endif %}
  {% endif %}
  {% if "websites" in basic and basic.websites|length > 0 %}
    {% for website in basic.websites %}
\noindent\href{ {{website.url}} }{ {{website.text}} }\par
    {% endfor %}
  {% endif %}
\end{tabu*}
{% endif %}
{% if objective is defined %}
\sectionheader{Objective}
{{ objective }}
\bigskip
{% endif %}
{% if (skills is defined and
       skills|length > 0) %}
\sectionheader{Technical Skills Summary}

\noindent\begin{tabu} to \textwidth { @{} X[2,l] X[5,p] }

  {% for category in skills %}
    {% if category.skills[0] is mapping %}
      {% for item in category.skills %}
{{category.category}} - {{ item.category }} & {{ item.skills|join(', ')}} \\
      {% endfor %}
    {% else %}
{{category.category}} & {{ category.skills|join(', ') }} \\
    {% endif %}
  {% endfor %}

\end{tabu}
\bigskip
{% endif %}
{% if experience is defined %}
\sectionheader{Experience}
  {% for job in experience %}
\noindent{}\begin{tabu} to \textwidth {@{} X[1,l] X[c] X[r]}
  \ &\ &\ \\
  \large{}\bf{} {{job.company}} & \multicolumn{2}{@{} l}{ {% if 'url' in job %} {{job.url}} {% else %}\ {% endif %}} \\
    {% for title in job.titles %}
  \multicolumn{2}{@{} l}{\bf{}\indent{}{{title.name}} } & {{title.startdate}} - {{title.enddate}} \\
    {% endfor %}
\end{tabu}
    {% if job.projects|length > 0 %}
  \begin{myitemize}
      {% for project in job.projects %}
    \item {{project}}
      {% endfor %}
  \end{myitemize}
    {% endif %}
  \medskip
  {% endfor %}
{% endif %}
{% if education is defined %}

\sectionheader{Education}

{% for school in education %}
\centerline{\large\bf
  {{school.school}}
  \hfill
  {{school.startdate}} - {{school.enddate}}
  }
\smallskip
  {% if ("degrees" in school and
         school.degrees|length > 0) %}
    {% for degree in school.degrees %}
\noindent\textit{ {{degree}} }\\
    {% endfor %}
  {% endif %}
  {% if ("achievements" in school and
         school.achievements|length > 0) %}
    {% for achievement in school.achievements %}
\indent\textit{ {{achievement}} }
    {% endfor %}
  {% endif %}
  {% if "gpa" in school %}
\indent GPA: {{ school.gpa }}
  {% endif %}
{% endfor %}
{% endif %}
{% if (activities is defined and
       activities|length > 0) %}
\sectionheader{Activities}
  {% for activity in activities %}
\centerline{\large\bf
  {{ activity.name }}
  \hfill
  {{activity.startdate}} - {{activity.enddate}}
}
  {% endfor %}
\bigskip
{% endif %}
{% if references is defined %}
  {% if references|length > 0 %}
\sectionheader{References}
    {% for reference in references %}
\centerline{\large\bf
  {{ reference.name }}
  \hfill
  {{ reference.info }}
}
    {% endfor %}
  {% else %}
\noindent{\bf Available on Request}
  {% endif %}
{% endif %}
\end{document}