How to use the metal-soy/src/Soy.getTemplate 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 deprecate / metal-router / demos / basic / src / About.soy.js View on Github external
/** @suppress {extraRequire} */
var soydata = goog.require('soydata');
/** @suppress {extraRequire} */
goog.require('goog.i18n.bidi');
/** @suppress {extraRequire} */
goog.require('goog.asserts');
var IncrementalDom = goog.require('incrementaldom');
var ie_open = IncrementalDom.elementOpen;
var ie_close = IncrementalDom.elementClose;
var ie_void = IncrementalDom.elementVoid;
var ie_open_start = IncrementalDom.elementOpenStart;
var ie_open_end = IncrementalDom.elementOpenEnd;
var itext = IncrementalDom.text;
var iattr = IncrementalDom.attr;

var $templateAlias1 = Soy.getTemplate('Image.incrementaldom', 'render');

var $templateAlias2 = Soy.getTemplate('Router.incrementaldom', 'render');


/**
 * @param {Object=} opt_data
 * @param {(null|undefined)=} opt_ignored
 * @param {Object=} opt_ijData
 * @return {void}
 * @suppress {checkTypes}
 */
function $render(opt_data, opt_ignored, opt_ijData) {
  ie_open('div');
    ie_open('a', null, null,
        'href', '/demos/basic/');
      itext('Home');
github deprecate / metal-router / demos / basic / src / Home.soy.js View on Github external
/** @suppress {extraRequire} */
var soydata = goog.require('soydata');
/** @suppress {extraRequire} */
goog.require('goog.i18n.bidi');
/** @suppress {extraRequire} */
goog.require('goog.asserts');
var IncrementalDom = goog.require('incrementaldom');
var ie_open = IncrementalDom.elementOpen;
var ie_close = IncrementalDom.elementClose;
var ie_void = IncrementalDom.elementVoid;
var ie_open_start = IncrementalDom.elementOpenStart;
var ie_open_end = IncrementalDom.elementOpenEnd;
var itext = IncrementalDom.text;
var iattr = IncrementalDom.attr;

var $templateAlias1 = Soy.getTemplate('Image.incrementaldom', 'render');


/**
 * @param {Object=} opt_data
 * @param {(null|undefined)=} opt_ignored
 * @param {Object=} opt_ijData
 * @return {void}
 * @suppress {checkTypes}
 */
function $render(opt_data, opt_ignored, opt_ijData) {
  ie_open('div');
    ie_open('a', null, null,
        'href', '/demos/basic/');
      itext('Home');
    ie_close('a');
    itext(' | ');
github deprecate / metal-router / demos / basic / src / About.soy.js View on Github external
/** @suppress {extraRequire} */
goog.require('goog.i18n.bidi');
/** @suppress {extraRequire} */
goog.require('goog.asserts');
var IncrementalDom = goog.require('incrementaldom');
var ie_open = IncrementalDom.elementOpen;
var ie_close = IncrementalDom.elementClose;
var ie_void = IncrementalDom.elementVoid;
var ie_open_start = IncrementalDom.elementOpenStart;
var ie_open_end = IncrementalDom.elementOpenEnd;
var itext = IncrementalDom.text;
var iattr = IncrementalDom.attr;

var $templateAlias1 = Soy.getTemplate('Image.incrementaldom', 'render');

var $templateAlias2 = Soy.getTemplate('Router.incrementaldom', 'render');


/**
 * @param {Object=} opt_data
 * @param {(null|undefined)=} opt_ignored
 * @param {Object=} opt_ijData
 * @return {void}
 * @suppress {checkTypes}
 */
function $render(opt_data, opt_ignored, opt_ijData) {
  ie_open('div');
    ie_open('a', null, null,
        'href', '/demos/basic/');
      itext('Home');
    ie_close('a');
    itext(' | ');

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