custom-directive-generator.js 450 Bytes
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */

define([
    'underscore'
], function (_) {
    'use strict';

    return _.extend({
        directiveTemplate: '{{customVar code=%s}}',

        /**
         * @param {String} path
         * @return {String}
         */
        processConfig: function (path) {
            return this.directiveTemplate.replace('%s', path);
        }

    });

});