How to use the metal-soy/src/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 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;
github peerkar / liferay-gsearch / gsearch-web / src / main / resources / META-INF / resources / view-templates / GSearchFacets.es.js View on Github external
value: null
	},
	getQueryParam: {
		validator: core.isFunction
	},
	initialQueryParameters: {
		value: null
	},
	setQueryParam: {
		validator: core.isFunction
	}
};

// Register component

Soy.register(GSearchFacets, templates);

export default GSearchFacets;
github peerkar / liferay-gsearch / gsearch-mini-web / src / main / resources / META-INF / resources / GSearchMini.es.js View on Github external
value: 3 
	},
	requestTimeout: {
		value: 200
	},
	searchPageURL: {
		value: null
	},
	suggestionsURL: {
		value: null
	}		
};

// Register component

Soy.register(GSearchMini, templates);

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

exports.render.params = ["height","id","src","width"];
exports.render.types = {"height":"any","id":"any","src":"any","width":"any"};
templates = exports;
return exports;

});

class Image extends Component {}
Soy.register(Image, templates);
export { Image, templates };
export default templates;
/* jshint ignore:end */

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