posit-dev / py-htmltools

Tools for HTML generation and output
MIT License
19 stars 4 forks source link

Add JS class #81

Closed gshotwell closed 9 months ago

gshotwell commented 9 months ago

This adds a JS class which we need for passing options to HTML tools. Since this class is currently identical to HTML I created a parent class RAW to hold that logic. I thought it was better to have HTML and JS as two child classes rather than as aliases in case we want to add HTML or JS specific methods (minify maybe?) down the road.

gshotwell commented 9 months ago

We decided that this function was confusing in htmltools so are going to add a shiny-specific helper.