chrisdiana / cms.js

Client-Side JavaScript Site Generator

Home Page:http://chrisdiana.github.io/cms.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

create own themes

maybegeek opened this issue · comments

  • create own themes
  • directory structure for own themes
  • ajax for getting the template.tpl

Hi there and nice to see @cdmedia back on track!

(As I'm not javascript-savvy enough, I'd rather try it with words.)

It would be nice to have theme support. A variable in config.js named theme = '' (default empty) could be set to the name of a directory in the newly created directory theme.

The structure of a theme would be a css directory and a file template.tpl. For example the default theme would be a directory css with poole.min.css and style.css in it and a file called template.tpl which includes the things we need for a own template. I'm unclear of how much we can put out of the index.html to the template, the css part in the <head> element? ...

In the config.js the variable would allow a corresponding ajax to get the themes/THEME/template.tpl and var tpl would get the individual themes content.

This would definitively allow more flexibility.

thanks