A file with .tpl extension is a template file created and used by HTTP File Server (HFS) which is a file sharing application program to send and receive files over the web technology HTTP instead of the FTP protocol. It is used to build HTML pages dynamically based on the template information that is defined to have settings with similar layout, styling and scripts. Applications that require the same settings can be assigned the same template file and HFS will return the requested page dynamically on runtime based on this template file.
TPL File Format
TPL Style Section
It includes the styling related information that may or may not use embedded CSS files reference. An exmaple of styling section is as follow.
The comment seciton of TPL includes are for generating comments and is defined as follow.
The upload section returns the actual HTML response from the server based on the template settings as shown in the following example.
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<li><strong>Folder:</strong> <a href="/">root</a>%folder%</li>
<h2>Final HFS Template Framework for Ishare USM Community</h2>
<p>I'm sharing stuffs unpaid, so please respect me by understanding these rules: </p>
<li>Sorry if your downloading activity was suddenly interrupted/disconnected. It might be due to some technical problems.</li>
<li>Be nice. Don't use IDM or any download manager program with many connections. Set it to 1 or you will be banned from my server.</li>
<li>Anything I shared here is the right of my freedom. Good or bad, the decision is in your hands. I'm not be responsible for any consequences.</li>
<p class=credit>Sharing among my university fellows is an unique culture here, in Engineering Campus, USM. Sharing via LAN by using HFS software is the best underground activity for everyone. Sharing is loving!</p>