elm-html icon indicating copy to clipboard operation
elm-html copied to clipboard

Adds `link` tag support

Open joaomilho opened this issue 8 years ago • 5 comments

joaomilho avatar Aug 02 '15 14:08 joaomilho

This PR is more of a question: Why don't we have link tag support already? I see lots of people asking how to have css inside the reactor debbuger. I can't think of a more natural way to do it than just having a link tag (I've tried in my project and it works fairly well). What am I missing?

joaomilho avatar Aug 02 '15 14:08 joaomilho

I can't think of a more natural way to do it than just having a link tag (I've tried in my project and it works fairly well).

It is not perfect.

The link tag generated by this way is inside the body, which is a little different from the ones in head:

http://stackoverflow.com/questions/1642212/whats-the-difference-if-i-put-css-file-inside-head-or-body

LeonLiuY avatar Jan 13 '16 09:01 LeonLiuY

Well, that's because Elm doesn't expect you to write your HTML container in it. Maybe the solution is not to avoid the link tag, but actually to add support for html, meta...

WDYT?

joaomilho avatar Jan 13 '16 09:01 joaomilho

Well, I agree to make this library to support link, html, meta...

What I wanted to state is that I'm still asking a better solution of "how to have css inside the reactor debbuger".

LeonLiuY avatar Jan 13 '16 10:01 LeonLiuY

well, is there any roadmap on Elm in general about that?

joaomilho avatar Jan 13 '16 15:01 joaomilho