Convert Vue files from pug templates to html
This repository is forked from vue-pug-to-html, and has various adjustments.
npm i -g @plaidev/pug-to-html
pugToHtml your-vue-file.vue
- Support
.jade
file - Support
<template lang="jade">
- Add
doctype: "html"
option (because https://github.com/yyx990803/pug-plain-loader/blob/d2bc7c4ee84096fe94dd0c8778f3f6d860c2d6c3/index.js#L7) - correct converting
<
,>
, and other operators in attributes.- Example
<div v-if="Math.random() > 0.5">…</div>
- Example
- Fork the repository from plaidev/pug-to-html !
- Create your topic branch from
master
:git branch my-new-topic master
- Add codes and pass tests !
- Commit your changes:
git commit -am 'Add some topic'
- Push to the branch:
git push origin my-new-topic
- Submit a pull request to
master
branch ofplaidev/pug-to-html
repository !