donpark / html2jade

Converts HTML to Jade template. Not perfect but useful enough for non-daily conversions.
MIT License
1.18k stars 157 forks source link

added doNotEncode option, built js, updated README, and bumped version #62

Closed borisjoffe closed 10 years ago

borisjoffe commented 10 years ago

My templates were getting html encoded (e.g. {% extends "layout.html" %} instead of {% extends "layout.html" %} ) so I added a --donotencode option.

It works for templates in tags (e.g. <h1>{{ myvariable }}</h1>) and standalone/logic stuff like {% if something %} and {{#each items}}

donpark commented 10 years ago

not sure if this use-case is common but changes are isolated so going ahead with merge.

donpark commented 10 years ago

oops. forgot to thank you @borisjoffe. :-)