This is my answer to a Question on Support site for LampCMS project
LampCMS was designed to handle multiple templating packages. I would rather create a second templating based on bootstrap. The idea is that end-user can select different 'theme' in which to view LampCMS.
That's why the structure of the style folder in www directory is
www/style/1/www
The idea is that you can have another theme under
www/style/2/www
theme can include own css file and own set of templates.
Also the reason for www folder under the theme id is that you can also have a mobile folder next to it.
The template loader was designed to handle inheritence-like loading of templates in the modile directory.
For example you may put a template in the
www/style/1/mobile and when viewing the site in mobile phone browser the loader will look in the
www/style/1/mobile directory but if template is not found there that it will load the template of the same name from the www/style/1/www directory.
This way you can create a more specific mobile-version template only for the templates that you want to be specific to mobile browsers while some other templates can be reused in all browsers.
I have not implemented this feature but the logic is there, all is left to do is for someone to create a different 'theme'