Which approach can the Architect use to Integrate this cartridge into a site that uses Controllers only?

While validating a LINK Cartridge for inclusion into the solution, an Architect notices that the UNK cartridge documentation requires the Architect to add a script node to a Pipeline in the storefront cartridge. The script is also a valid CommonJS module.

Which approach can the Architect use to Integrate this cartridge into a site that uses Controllers only?
A . Copy and paste the script that is required directly into the Controller, add the appropriate arguments, then execute the correct method
B. Add the script that Is required via a require statement In the Controller, add the appropriate arguments, and execute the correct method.
C. Add the script that is required via a Module, exports statement m the Controller add the
appropriate arguments, and execute the correct method.
D. Add the script that is required via an import$cript statement in the Controller, add the appropriate arguments, and execute the correct method.

Answer: B

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments