FruitJS
FruitJS copied to clipboard
Themes and Templates
The themes and templates architecture needs to be reworked and exposed. This will allow others to create new or custom themes and use them in markdown page generation. Themes should have the following features to start with:
- Manifest file that can be included in a folder
- Custom CSS, LESS, JS, and Images can be included,
- Need pre and post render template pieces for including a header and footer
- Should be able to 'inherit' from default theme
- Should include mardown render template
- Can force override of default to default to single page theme
- Able to accept a custom set of parameters that can be included in rendering manifest files
This is the default initial manifest file that other manifest files will inherit from. Manifest files not wishing for a default value should override it.
{
"includeHead": true,
"includeNav" : true,
"includeFooter" : true,
"preRenderTemplates" : [],
"postRenderTemplates" : [],
"renderTemplate" : null,
"css" : [],
"less" : [],
"js" : [],
"images" : [],
"forceSinglePage" : false
}
More features will be added as the feature matures.
Current idea for parameters is adding the following keys to the table above:
{
"parameters" : {
"key" : "default value",
"key 2" : 1234
},
"lessVariables" : {
"varNameOne" : "#FFFFFF"
},
}