Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/plaidev/pug-to-html
Convert Vue files from pug templates to html
https://github.com/plaidev/pug-to-html
converter jade pug vue vuejs
Last synced: about 1 month ago
JSON representation
Convert Vue files from pug templates to html
- Host: GitHub
- URL: https://github.com/plaidev/pug-to-html
- Owner: plaidev
- License: mit
- Created: 2019-06-03T06:35:35.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-05-01T06:42:03.000Z (over 1 year ago)
- Last Synced: 2024-09-28T08:42:34.959Z (about 2 months ago)
- Topics: converter, jade, pug, vue, vuejs
- Language: JavaScript
- Homepage:
- Size: 379 KB
- Stars: 24
- Watchers: 11
- Forks: 5
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pug-to-html
Convert Vue files from pug templates to html
This repository is forked from [vue-pug-to-html](https://github.com/dperrymorrow/vue-pug-to-html), and has various adjustments.
## :cd: Installation
```sh
npm i -g @plaidev/pug-to-html
```## :lollipop: Usage
```sh
pugToHtml your-vue-file.vue
```## :question: What's difference with `vue-pug-to-html` ?
- Support `.jade` file
- Support ``
- 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 `…`## :muscle: Contribution
- Fork the repository from [plaidev/pug-to-html](https://github.com/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 of `plaidev/pug-to-html` repository !## :copyright: License
[MIT](http://opensource.org/licenses/MIT)