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

Meta Language support in .vue files #199

Closed
TheJaredWilcurt opened this issue Sep 14, 2017 · 6 comments
Closed

Meta Language support in .vue files #199

TheJaredWilcurt opened this issue Sep 14, 2017 · 6 comments

Comments

@TheJaredWilcurt
Copy link

https://vuejs.org/v2/guide/single-file-components.html

One feature of Vue is to allow for metalanguage support, such as:

  • Markdown, Pug, HAML
  • TypeScript, JSX, CoffeeScript
  • Sass, SCSS, Less, Stylus

I should be able to write this and have it work:

<style lang="sass">
h1
    background: #F00
    border: 2px solid #00F

.thing
    display: inline-block
    padding: 10px
    .stuff
        margin: 30px
</style>
@CompuIves
Copy link
Member

I believe this should already work for TypeScript, Sass, SCSS, Less and Stylus. Which language didn't work for you?

@CompuIves
Copy link
Member

Ahh, I understand what's happening. We only supported the scss syntax, let me write a fix for sass.

@CompuIves
Copy link
Member

@TheJaredWilcurt
Copy link
Author

This is the best day ever!

@zephraph
Copy link
Contributor

zephraph commented Jan 8, 2018

I know this is closed, but I can't seem to get pug working. Should I open a new ticket for this?

@shreeve
Copy link
Contributor

shreeve commented Jan 14, 2019

Check out #1467 - CoffeeScript support for vue-cli template

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