github-latest-commits-widget icon indicating copy to clipboard operation
github-latest-commits-widget copied to clipboard

Extract layout from the script, allow for custom CSS?

Open cheesegrits opened this issue 12 years ago • 2 comments

Hey Tyler,

If you are still actively developing / using this, I'd like to send some more pull requests which do two things:

  1. Allow for a custom CSS file, so the styling can be changed without having changes in the index.html overwritten when updating from github.

  2. 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?

cheesegrits avatar Nov 07 '13 22:11 cheesegrits

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!

TylerLH avatar Jan 27 '14 00:01 TylerLH

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.

TylerLH avatar Feb 11 '15 05:02 TylerLH