TYPEMILL

Quick Start for Developers

So you are a pro and don't want to read the whole documentation? No problem, this is all you need to know to create your own theme for TYPEMILL.

Theme Folder

You will find all themes in the theme folder of TYPEMILL. Change the theme in the settings.yaml.

Theme Structure

There is no theme structure. There are only two files that are required:

There is another optional template:

It is always a good idea to structure your files a bit more. For example, you can create a folder called partials with separate files for different layouts (maybe a folder and file layout?), a navigation, a header, a footer or whatever you want. But this decision is completely up to you. The same with css, JavaScript and other ressources: It is a good practice to create separate folders for that, but it is up to you.

Twig

The template language for TYPEMILL is Twig. You are probably familiar with it. If not: Twig is a widespread template language, that is very easy to learn. It is shorter and safer to use than pure PHP.

Template Variables

There are exactly six template variables to fill your templates with dynamic content. Just print the variables out to get some insights.

If you did not understand everything, then please read the full developer manual. In less than one hour you can develop with TYPEMILL like a pro.

Happy coding!