Vue-loader: Replace "jade" with "pug"

Created on 26 Apr 2016  路  8Comments  路  Source: vuejs/vue-loader

Jade has been renamed to "pug" due to a trademark problem.

See: pugjs/pug#2184

-> you should replace "jade" with "pug" in the package.json and support "pug" templates:

<template lang="pug">
.hello
  h1 {{ msg }}
</template>

lang="jade" still should be allowed.

庐@eschmid72
Same as : https://github.com/vuejs/vueify/issues/79

Thanks !

Most helpful comment

Now that consolidate has support for pug in a patch release, I don't think there's anything we need to do in vue-loader. Just do a fresh install to get latest deps, and then npm install pug should suffice.

All 8 comments

vue-loader uses consolidate.js, which doesn't support pug yet: https://github.com/tj/consolidate.js/pull/232

pug is now in [email protected]

Now that consolidate has support for pug in a patch release, I don't think there's anything we need to do in vue-loader. Just do a fresh install to get latest deps, and then npm install pug should suffice.

:class="variable" doesn't work with pug...

":" is not valid as the start or end of an un-quoted attribute.

Proof

@happierall Maybe you can try this:
':class'='variable'

Writing in full, i.e. v-bind:class worked for me in pug.

both shortcut and full syntax worked for me.
:class="{ visible: !isStart }"

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ryanelian picture ryanelian  路  3Comments

amorphine picture amorphine  路  3Comments

NextSeason picture NextSeason  路  3Comments

flashios09 picture flashios09  路  3Comments

jorgy343 picture jorgy343  路  3Comments