Skip to content
This repository has been archived by the owner on Sep 8, 2020. It is now read-only.

Latest commit

 

History

History
27 lines (17 loc) · 960 Bytes

File metadata and controls

27 lines (17 loc) · 960 Bytes

UI

This folder contains Handlebars templates for the extension's UI. Essentially, it allows us to define a template for the UI with placeholders for the values. The extension's js code in ../src/popup.js can use these templates and just pass in real data to be displayed.

Compiling

For the extension to work, you must compile the templates. This converts these .handlebars files into .js files.

As stated in the Getting Started Guide in the ../README.md, you can run the following line to compile templates:

npm run compileTemplates

This places the compiled templates directly into ../src.

Alternatively, you can watch the templates so that they automatically re-compile anytime you change them.

To use this feature, run this command:

npm run watchTemplates

This also places the compiled templates directly into ../src.