Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

Commit

Permalink
RELNOTES: Create a goog.define for whether or not soyjs should be stu…
Browse files Browse the repository at this point in the history
…bbed by idom

PiperOrigin-RevId: 501031404
Change-Id: I792248be4fd47cf0ed49d36a913fe98a1b296a34
  • Loading branch information
iteriani authored and copybara-github committed Jan 10, 2023
1 parent fe511fa commit 86e9677
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions closure/goog/soy/soy.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,18 @@ const asserts = goog.require('goog.asserts');
const googDom = goog.require('goog.dom');
const safe = goog.require('goog.dom.safe');

/**
* A define to control the behavior of SoyJS. If set to true, all Soy templates
* will check for the the presence of a stub template generated by Incremental
* Dom, and delegate to it if present.. If it is set, then it delegates to the
* function instead.
*
* This is a define because this adds a set amount of code per template to check
* for the stub.
* @define {boolean}
*/
exports.shouldStub = goog.define('goog.soy.SHOULD_STUB', false);

/**
* A structural interface for injected data.
*
Expand Down

0 comments on commit 86e9677

Please sign in to comment.