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

Commit 86e9677

Browse files
iterianicopybara-github
authored andcommitted
RELNOTES: Create a goog.define for whether or not soyjs should be stubbed by idom
PiperOrigin-RevId: 501031404 Change-Id: I792248be4fd47cf0ed49d36a913fe98a1b296a34
1 parent fe511fa commit 86e9677

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

closure/goog/soy/soy.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,18 @@ const asserts = goog.require('goog.asserts');
1818
const googDom = goog.require('goog.dom');
1919
const safe = goog.require('goog.dom.safe');
2020

21+
/**
22+
* A define to control the behavior of SoyJS. If set to true, all Soy templates
23+
* will check for the the presence of a stub template generated by Incremental
24+
* Dom, and delegate to it if present.. If it is set, then it delegates to the
25+
* function instead.
26+
*
27+
* This is a define because this adds a set amount of code per template to check
28+
* for the stub.
29+
* @define {boolean}
30+
*/
31+
exports.shouldStub = goog.define('goog.soy.SHOULD_STUB', false);
32+
2133
/**
2234
* A structural interface for injected data.
2335
*

0 commit comments

Comments
 (0)