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

Nodes head, link and title? #113

Closed
jhg opened this issue Feb 5, 2017 · 11 comments
Closed

Nodes head, link and title? #113

jhg opened this issue Feb 5, 2017 · 11 comments

Comments

@jhg
Copy link

jhg commented Feb 5, 2017

Hi, will this library imlement the nodes head or link or title (like the node body) for a easy and cleand way to do things like change title, add css files, etc?

@process-bot
Copy link

Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it!

Here is what to expect next, and if anyone wants to comment, keep these things in mind.

@jvoigtlaender
Copy link

Likely no.

But you may want to contribute those to http://package.elm-lang.org/packages/elm-community/html-extra

@jhg
Copy link
Author

jhg commented Feb 5, 2017

Some features basic like change a title in a web app, metadata for render when compiler create the html file, links to css or customize the css that the compiler create, it's a basic features that maybe it's good "live" in elm-lang in official repos and not n comunity or "extra", I think.

@jhg
Copy link
Author

jhg commented Feb 5, 2017

elm-lang/elm-reactor#138
elm-lang/elm-make#37
And the comunity I think also would like the features.

@jvoigtlaender
Copy link

A lot of things exist that one might consider nicer to be available in an official elm-lang repo.

And yet, https://github.com/elm-lang/core/blob/master/CONTRIBUTING.md#adding-new-functions applies.

Are you blocked in your work in any way if these functions are "only" available in an elm-community repo?

@jvoigtlaender
Copy link

I'm bowing out of this discussion.

Anyway, the issue tracker is not for discussions, it is for bugs. It is not even really for feature requests. Feature requests are usually first discussed in one of the community forums listed on the Elm website.

@jhg
Copy link
Author

jhg commented Feb 5, 2017

https://github.com/elm-lang/core#default-imports
"The intention is to include things that are both extremely useful and very unlikely to overlap with anything that anyone will ever write in a library."

A custom CSS in the HTML that the compiler generate anyone will need if want because this hasn't default good styles.

@jhg
Copy link
Author

jhg commented Feb 5, 2017

@jvoigtlaender sincerely Elm looks beta, even with version 0.18, and if still comunity have a default HTML that nobody use and still Elm core developers don't change it, Elm looks only a good toy for a weekend. The sad it's, that Elm developers don't see what really all people need like basic features.

@jvoigtlaender
Copy link

@jhg, there is a company that uses Elm with thousands of lines of code. You may be wrong in your estimation, is that possible? Anyway, the kinds of comparisons you make seem not very fruitful to me. Oh, and I said I was bowing out of the discussion, because it makes no sense to have it here...

@jhg
Copy link
Author

jhg commented Feb 5, 2017

Oh yes, using Elm from JS with custom HTML and nobody can use a HTML that is ugly (no the code, it's because it needs CSS) without CSS, or need edit it manually. But not all companies allow that because need a mature tool and if will migrate from JS is for not need use JS.

If the feature to be in comunity libraries, but even is not in comunity libraries. If all people do a thing manually maybe is good that Elm effort to automate it with a flag in the compiler for add only a simple CSS.

From before of 2015 comunity request just include a simple CSS, today it's 2017, the solutions today still is compile JS and not use HTML option... Maybe the HTML feature was added prematurely?

@jvoigtlaender I am moving it to mail list, but sincerely, do you use in your work the default HTML generate from elm make without CSS? Or you are forced to use a custom HTML and use JS option from compiler?

@djyde
Copy link

djyde commented May 11, 2017

I agree with @jhg .

I am trying to use Elm in a new project. But I found that I can't even write a basic <link> to use a external css style library in elm-reactor.

Then I found elm-lang/elm-reactor#138. It's an issue from 2 years ago. But nothing was enhance.

I think it's ridiculous. I know the NoRedInk is running 100,000 lines Elm in production. But not all company or any small project will write their stylesheet themselves. By contraries, they use third party css library. And they found that it is a strange thing in Elm, even they need to do with hack.

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

4 participants