\BLOCK{ if name != "root" }
\chapter*{\color{headtoc} \VAR{name}}
\BLOCK{ else }
{\LARGE \textbf{ECL DOCUMENTATION}}
\hfill
\IfFileExists{HPCC-Logo.png}{%
}{%
    \immediate\write18{curl -O https://i.postimg.cc/W3wcc8KJ/HPCC-Logo.png}
}
\includegraphics[scale=.5]{HPCC-Logo.png}\newline
\BLOCK{ endif } 

\hypertarget{ecldoc:toc:\VAR{label}}{}
\hyperlink{ecldoc:toc:\VAR{ up }}{Go Up}

\BLOCK{ if bundle }
\begin{tabularx}{\textwidth}{|l|X|}
\hline
\BLOCK{ for tag in bundle.iterchildren() }
\VAR{ tag.tag|escape_tex } &
\BLOCK{ if tag.tag == 'License' }
\url{\VAR{ tag.text }}
\BLOCK{ else }
\VAR{ tag.text|escape_tex }
\BLOCK{ endif } \\
\hline
\BLOCK{ endfor }
\end{tabularx}
\BLOCK{ endif }

\section*{Table of Contents}
{\renewcommand{\arraystretch}{1.5}
\begin{longtable}{|p{\textwidth}|}
\hline
\BLOCK{ for d in files }
\hyperlink{ecldoc:toc:\VAR{d.label}}{\VAR{ d.name|escape_tex }} \\
\BLOCK{ if d.doc != '' }
\VAR{ d.doc|escape_tex } \\
\BLOCK{ endif }
\hline
\BLOCK{ endfor }
\end{longtable}
}

\BLOCK{ for d in files }
\input{\VAR{ d.target[:-4] }}
\BLOCK{ endfor }
