I had a look over some extensions, I think this one is from you as well:
It looks like you're using underscore templates to compile and render the final HTML to insert.
One thing that caught me by surprise is that inside your sidebarTemplate.html, you can invoke the formatStripeCurrency function, that is defined inside your app.js content script. Sorry if this is a n00bish question, but do templates that instantiated in the same script, somehow automatically have access to all the functions in that content script?
So I was thinking in my context, if I was to have a HTML Login page, I believe I would either have to:
1) Set the onclick of the Login button, to call a function in the content script that loaded this HTML Login page. However My issue would be how do I "bind" or reference the values entered in the username/password?
2) When I load the HTML Login page template, and create the element. I use jquery to select the input fields and the button, and manually add event handlers to them, But feels ugly.
Any pointers for this scenario or what I should read to achieve it?
Thank you.