Extract layout from the script, allow for custom CSS?
Hey Tyler,
If you are still actively developing / using this, I'd like to send some more pull requests which do two things:
-
Allow for a custom CSS file, so the styling can be changed without having changes in the index.html overwritten when updating from github.
-
Allow for some kind of (customizable) templating, rather than embedding the layout in the Javascript.
Do you have any strong opinions about approaches for doing this?
Sorry for waiting so long to get back to you, been busy with other projects. I'd be more than happy to accept PRs for this. No strong opinions in any direction really, would love to see what you've got.
Thanks!
I've been considering releasing a fork of this project as a React.js component. It would be non-trivial to make that version support custom styles/templating. You can see some of my current ideas in the react branch of this project, but keep in mind if it were released as a component you would no longer include the widget via an iFrame -- instead using the React.js library from Facebook.