Appearance
Extensions
The Extensions directory of Email Template has the same purpose as e-Detailer Extensions directory — stores the files where the component and plugins are registered globally.
Global components registration
Newly instantiated Email Template has the common.js file in Extensions directory. Use that file to include components globally. For example:
js
import wizText from 'wiz-text';
import wizLayout from 'wiz-layout';
import wizImage from 'wiz-image';
export default (Vue) => {
Vue.component('wiz-text', wizText);
Vue.component('wiz-layout', wizLayout);
Vue.component('wiz-image', wizImage);
}Global plugins registration
The file plugins.js within Extensions directory can be used to include Vue plugins and mixins :
js
import PaddingTransfer from '../modules/padding-transfer';
export default (Vue) => {
Vue.use(PaddingTransfer);
};