convert-to-pug

[![Build Status](https://travis-ci.org/SerayaEryn/convert-to-pug.svg?branch=master)](https://travis-ci.org/SerayaEryn/convert-to-pug) [![Coverage Status](https://coveralls.io/repos/github/SerayaEryn/convert-to-pug/badge.svg?branch=master)](https://coveral

Usage no npm install needed!

<script type="module">
  import convertToPug from 'https://cdn.skypack.dev/convert-to-pug';
</script>

README

convert-to-pug

Build Status Coverage Status NPM version

convert-to-pug coverts jade templates to pug templates. It changes all occurrences of legacy mixin calls, attribute interpolation and prefixed each or for loops to the new syntax.

Install

npm install -g convert-to-pug

Usage

Convert a .jade file to a .pug file:

convert-to-pug template.jade

Convert all .jade files in a directory:

convert-to-pug views/

License

MIT