@goonz
There is a very simple snippet you can use to use files instead of the db
There are various examples in the forum.
Most people on the forum refer to it as the ’include snippet’
The one I use is actually called the ’include_Template’ I got it off the forum can’t remember where.
<?php
# Snippet to include template files from file system
# USAGE: [[includeTemplate? &tpl=`yourFileName.html`]]
if ( !isset($tpl) || $tpl== "" ) return "Missing Template file!";
$tpl = $base_path .'assets/templates/'.$tpl;
ob_start();
include($tpl);
return ob_get_clean();
Save above code as a snippet with a Snippet Name of includeTemplate.
Call in the Template with:-
[[includeTemplate? &tpl=`yourFileName.html`]]
Note replace `yourFileName.html` with your chosen filename + extension.
These are backticks.
The reason I use the .html extension is my editor needs the extension for it’s goodies to work
I find this very useful when developing site.
I use 3 to 6 files as chunks and have all open in my editor.
In fact I call these files in my template which just consists of 3 to 6 includeTemplate calls.
When ready to transfer to live system just save file contents to chunks of same name no file Extension and change includeTemplate to chunk calls simple.
[[includeTemplate? &tpl=`head.html`]] becomes [[!$head]]
This is only my way not the correct or preferred way.

It works for me.