Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support svg #1

Open
wmertens opened this issue Aug 15, 2012 · 2 comments
Open

Support svg #1

wmertens opened this issue Aug 15, 2012 · 2 comments

Comments

@wmertens
Copy link
Contributor

There's <svg> support in coffeekup (see gradus/coffeecup@07ffa72), but since CoffeeMugg uses this you could even do one better and switch out this so that under @svg only SVG elements are allowed...

@wmertens wmertens mentioned this issue Aug 15, 2012
@jaekwon
Copy link
Owner

jaekwon commented Aug 16, 2012

Nice. Curious what you're using SVG for?

@wmertens
Copy link
Contributor Author

I'm using svg with d3.js which is seriously awesome (check out the examples), which maps an array of data to DOM elements (normally SVG elements but it could be anything) and updates them when the data changes.

My pipe dream is that CoffeeMugg could be used to do the same. At the very least it could be used to create templates that are then assigned using d3 (so it needs SVG support), but I think that using instantiation and some automatic id creation CoffeeMugg could even do the mapping of any data to DOM itself, and then d3 would provide the graphing algorithms. I'm still thinking about it, but it would be something that you run once to generate the html and then again to update elements. You would even be able to generate the html server side and perform the updates in the browser. Once I've got it hammered out I'll create an issue :-).

jaekwon pushed a commit that referenced this issue Aug 19, 2012
Use regular object instead of CoffeeScript class
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants