config-directive-generator.js 450 B

12345678910111213141516171819202122232425
  1. /**
  2. * Copyright © Magento, Inc. All rights reserved.
  3. * See COPYING.txt for license details.
  4. */
  5. define([
  6. 'underscore'
  7. ], function (_) {
  8. 'use strict';
  9. return _.extend({
  10. directiveTemplate: '{{config path="%s"}}',
  11. /**
  12. * @param {String} path
  13. * @return {String}
  14. */
  15. processConfig: function (path) {
  16. return this.directiveTemplate.replace('%s', path);
  17. }
  18. });
  19. });