Installation
Keep in mind that the guide is designed to be read linearly, so try to avoid jumping through it on the first read through. It will only take 30 minutes of your time.
Installation
npm i stratoxImport Stratox
import { Stratox } from './node_modules/stratox/src/Stratox.js';Config
Stratox.setConfigs({
directory: "/absolute/path/to/views/", // Used for autoload
cache: false, // Automatically clear cache if is false on dynamic import
handlers: {
fields: StratoxTemplate, // Optional: will add form builder (se bellow)
helper: function() {
// Pass on helper classes, functions and objects to your views
return {
helper1: "Mixed data...",
helper2: "Could be classes You want to",
helper3: "Pass on to you components",
};
}
}
});Last updated