I have tried to re-use an svg by changing the fill color on different path. I've come halfway. I managed to transclude a svg by putting it in a tiddlers field and than change the colors from a stylesheet, but all different path colors are visible all the time. I would like it to change dependent on class. If I insert class="africa" so would the <path id = africa> get a fill="red" and all other fill="none", but I do not succeed.
Can I set a class on a transclude, and would it work? I've included my testtiddler in a json-file if it helps explain my case /Magnus -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/74a7ec4a-2ec0-4b4b-b829-69b8bb3a1b5e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
tiddlers.json
Description: application/json