This tutorial describes the steps required to create a fully functional TYPO3 website from a design template (HTML, CSS, JavaScript, etc.) - with the support of a sitepackage extension.
The final code of the sitepackage extension can be retrieved from the TYPO3CMS-Tutorial-SitePackage-Code repository.