How to use metal-soy - 10 common examples

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 peerkar / liferay-gsearch / gsearch-web / src / main / resources / META-INF / resources / view-templates / GSearchResults.es.js View on Github external
value: null
	},
	resultLayoutOptions: {
		value: null
	},
	setQueryParam: {
		validator: core.isFunction
	},
	showAssetTags: {
		value: false
	}
};

// Register component

Soy.register(GSearchResults, templates);

export default GSearchResults;
github peerkar / liferay-gsearch / gsearch-web / src / main / resources / META-INF / resources / GSearch.es.js View on Github external
value: 3
	},
	requestTimeout: {
		value: 10000
	},
	resultsCallbacks: {
		value: [] 
	},
	searchResultsURL: {
		value:null
	}
};

// Register component

Soy.register(GSearch, templates);

export default GSearch;
github peerkar / liferay-gsearch / gsearch-web / src / main / resources / META-INF / resources / view-templates / GSearchPaging.es.js View on Github external
* 
 * @type {!Object}
 * @static
 */
GSearchPaging.STATE = {
	getQueryParam: {
		validator: core.isFunction
	},
	setQueryParam: {
		validator: core.isFunction
	}
};

// Register component

Soy.register(GSearchPaging, templates);

export default GSearchPaging;
github peerkar / liferay-gsearch / gsearch-web / src / main / resources / META-INF / resources / view-templates / GSearchFilters.es.js View on Github external
validator: core.isFunction
	},	
	initialQueryParameters: {
		value: null
	},
	setQueryParam: {
		validator: core.isFunction
	},
	templateParameters: {
		value: ['type','scope','time']
	}
};

// Register component

Soy.register(GSearchFilters, templates);

export default GSearchFilters;
github deprecate / metal-router / demos / basic / src / Home.soy.js View on Github external
ie_close('div');
}
exports.render = $render;
if (goog.DEBUG) {
  $render.soyTemplateName = 'Home.render';
}

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

});

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

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

});

class About extends Component {}
Soy.register(About, templates);
export { About, templates };
export default templates;
/* jshint ignore:end */
github peerkar / liferay-gsearch / gsearch-web / src / main / resources / META-INF / resources / view-templates / GSearchField.es.js View on Github external
validator: core.isFunction
	},
	queryMinLength: {
		value: 3
	},
	setQueryParam: {
		validator: core.isFunction
	},
	suggestionsURL: {
		value: null
	}
};

// Register component

Soy.register(GSearchField, templates);

export default GSearchField;

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