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

Removed Jade from html group #2978

Closed
wants to merge 1 commit into from
Closed

Removed Jade from html group #2978

wants to merge 1 commit into from

Conversation

zacps
Copy link

@zacps zacps commented May 2, 2016

Jade should not be included under html because it serves a very different purpose, while it does compile to html it doesn't look like html and is a language for templating rather than just markup.

Fixes #2977

Jade should not be included under html because it serves a very different purpose, while it does compile to html it doesn't look like html and is a language for templating  rather than just markup.

Fixes #2977
@arfon
Copy link
Contributor

arfon commented May 6, 2016

Hi @zacps, thanks for opening this PR.

While I believe I understand your motivations for making this change, we've chosen to implement language groups in Linguist as we believe they represent higher-level logical groupings for collections of languages. For example the HTML group includes:

Quoting from http://jade-lang.com/reference/

Jade is a terse language for writing HTML templates.

Which I think makes Jade a good candidate for the HTML group as currently defined.

Jade should not be included under html because it serves a very different purpose, while it does compile to html it doesn't look like html and is a language for templating rather than just markup.

This argument can be made for pretty much every example in the list above too.

My question to you is: is there a usability problem that you're facing here? One thing I do think needs fixing on GitHub is what happens if you click the language bar for a repository and view the search results.

Currently, clicking the language bar on https://github.com/zacps/go-wiki shows you that a bunch of the files are in HTML, when this is clicked though...

click

you get sent to this page:

screen_shot_2016-05-06_at_11_42_52_am

which I think is pretty confusing for all. My suggested fix is that we work out how to link these groups properly to the languages in the group (in this case we would show the Jade results).

The alternative is that we simply remove the groups from Linguist but I think they serve a useful purpose right now.

@zacps
Copy link
Author

zacps commented May 6, 2016

Yeah that's a fair point, I can't say I would know how to change that behaviour though. I guess wherever the handler for the bar is it's looking at the group name rather than the name itself.

@nazar-pc
Copy link

There are languages like CoffeeScript/LiveScript, which are shown separately from JavaScript.
I think this is very similar to how Jade/Pug, HAML and others are different from HTML, so I'd also like to see them be separated from HTML group.

@brndnblck brndnblck closed this Jan 4, 2017
@github-linguist github-linguist locked as resolved and limited conversation to collaborators Jun 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Jade is detected but listed as html anyway
4 participants