Closed tad-lispy closed 5 years ago
Thanks for this request. I think it makes sense to expose this API. I drafted a pull request #13, let me know if it suits your needs and I will release it (ideally if you try it out in your project before this new API published).
It would be nice to have a way of getting an icon dynamically (e.g. from the user input). Perhaps the module could expose a dictionary of
String
toIcon
, to be used like this:My use case is parsing and rendering an Elm Markup document loaded via HTTP. Inside I have a custom element called
icon
that takes a name parameter:I'd like to provide a dictionary of icons to the
parse
function, so it would be easy to select the icons I need and add custom ones.