Testing
To test template you should open it via some kind of webserver. The CLI has one built in, and prints the address to open:
trustisto template start ./my-popupThe template is opened with following query parameters, for example http://localhost:8080/index.html?id=test&locale=en&test=1
id- any textlocale-enfor default (--localein the CLI)test-1- it will prevent form from submit forms and other external actions, and leaves coupons, client fields and price drops empty instead of waiting for them
All default parameters from manifest in selected locale (or from en locale) will be loaded into template. Add any parameter to the address to override its default, for example &headerTitle=Hello.
Any other web server works too, for example the LiveServer extension for Visual Studio Code.
Before uploading, run trustisto template validate ./my-popup to check the template the way the panel does (see Preview and validation).
For checking template in proper size (width x height), please use Chrome Inspector and mobile device simulator.