How to use the metal-soy.register function in metal-soy

To help you get started, we’ve selected a few metal-soy examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github LiferayCloud / marble / packages / marble-spinner / src / Spinner.soy.js View on Github external
* }}
 */
$render.Params;
if (goog.DEBUG) {
  $render.soyTemplateName = 'Spinner.render';
}

exports.render.params = ["isDone","size","style"];
exports.render.types = {"isDone":"?","size":"?","style":"?"};
templates = exports;
return exports;

});

class Spinner extends Component {}
Soy.register(Spinner, templates);
export { Spinner, templates };
export default templates;
/* jshint ignore:end */
github metal / metal-devtools / src / soy / ChildSoy.soy.js View on Github external
ie_close('div');
}
exports.render = $render;
if (goog.DEBUG) {
  $render.soyTemplateName = 'ChildSoy.render';
}

exports.render.params = ["index","subTree"];
exports.render.types = {"index":"any","subTree":"any"};
templates = exports;
return exports;

});

class ChildSoy extends Component {}
Soy.register(ChildSoy, templates);
export { ChildSoy, templates };
export default templates;
/* jshint ignore:end */
github LiferayCloud / marble / packages / marble-checkbox / src / Checkbox.soy.js View on Github external
* }}
 */
$render.Params;
if (goog.DEBUG) {
  $render.soyTemplateName = 'Checkbox.render';
}

exports.render.params = ["id","value","label","checked"];
exports.render.types = {"id":"string","value":"string","label":"string","checked":"bool"};
templates = exports;
return exports;

});

class Checkbox extends Component {}
Soy.register(Checkbox, templates);
export { Checkbox, templates };
export default templates;
/* jshint ignore:end */
github electricjs / electric / packages / electric-clay-components / src / ElectricNavigation.js View on Github external
'use strict';

import Soy from 'metal-soy';
import {ElectricNavigation} from 'electric-base-components';

import templates from './ElectricNavigation.soy.js';

Soy.register(ElectricNavigation, templates);

export default ElectricNavigation;
github electricjs / electric / packages / electric-marble-components / src / ElectricSearch.js View on Github external
'use strict';

import Soy from 'metal-soy';
import {ElectricSearch} from 'electric-base-components';

import templates from './ElectricSearch.soy.js';

Soy.register(ElectricSearch, templates);

export default ElectricSearch;
github LiferayCloud / marble / packages / marble-timestamp / src / Timestamp.js View on Github external
Timestamp.STATE = {
  childElementClasses: Config.string().value(''),
  elementClasses: Config.string().value(''),
  hasTitle: Config.bool().value(false),
  label: Config.string()
    .internal(true)
    .value(''),
  time: Config.number().value(0),
  title: Config.string()
    .internal(true)
    .value(undefined),
  type: Config.oneOf(['timestamp', 'duration'])
    .value('timestamp'),
};

Soy.register(Timestamp, templates);

export {Timestamp};
export default Timestamp;
github electricjs / electric / packages / generator-electric / generators / app / templates / src / partials / TutorialTimer.js View on Github external
if (eventDuration.seconds() > 0) {
			eventDurationString += ' ' + moment.duration(eventDuration.seconds(), 'seconds').asSeconds() + ' sec';
		}

		return eventDurationString.trim();
	}
};

TutorialTimer.STATE = {
	time: {
		value: null
	}
}

Soy.register(TutorialTimer, templates);

export default TutorialTimer;
github LiferayCloud / marble / packages / marble-checkbox-group / src / CheckboxGroup.js View on Github external
* @default undefined
   */
  name: Config.string().required(),

  /**
   * The style of the radio group
   * @type {!String}
   * @default radio-group
   */
  style: Config.oneOf([
    'checkbox-group',
    'checkbox-group checkbox-group-inline'
  ]).value('checkbox-group'),
};

Soy.register(CheckboxGroup, templates);

export {CheckboxGroup};
export default CheckboxGroup;
github electricjs / electric / packages / electric-clay-components / src / ElectricCode.js View on Github external
'use strict';

import Soy from 'metal-soy';
import {ElectricCode} from 'electric-base-components';

import templates from './ElectricCode.soy.js';

Soy.register(ElectricCode, templates);

export default ElectricCode;
github electricjs / electric / packages / electric-clay-components / src / ElectricSearch.js View on Github external
'use strict';

import Soy from 'metal-soy';
import {ElectricSearch} from 'electric-base-components';

import templates from './ElectricSearch.soy.js';

Soy.register(ElectricSearch, templates);

export default ElectricSearch;

metal-soy

A soy templates renderer to be used with Metal.js's Component class

BSD
Latest version published 4 years ago

Package Health Score

54 / 100
Full package analysis