Skip to content

convert whole directories using the pyjade command line.#252

Open
adisciple50 wants to merge 5 commits intosyrusakbary:masterfrom
adisciple50:master
Open

convert whole directories using the pyjade command line.#252
adisciple50 wants to merge 5 commits intosyrusakbary:masterfrom
adisciple50:master

Conversation

@adisciple50
Copy link
Copy Markdown

@adisciple50 adisciple50 commented Apr 30, 2016

my frontend designer passed a bunch of jade files ordered in subdirectories to me. currently adding pyjade to django screws up the content loaders slightly. so this is a work around i would like to share as an alternative.

i have tried to work around existing code as much as possible, but if the structure isnt to your liking, you are welcome to refactor. thanks for giving the world this wonderful project, and i hope the world enjoys this update. many thanks from me, jason. 👍

jason added 5 commits April 27, 2016 21:48
added len(args) >= 1 so that convert.py can be debugged reliably. by itself.
this should intergrate with django, but this is currently untested. havent found the unit tests yet.

pyjade command line tests work fine, and i have left the six stdin read alone. six willl not read std in if a file or dir is specified.
currently passes all automated tests! :)
@adisciple50
Copy link
Copy Markdown
Author

passes all tests packaged in this repo.

@kakulukia
Copy link
Copy Markdown

Since there are no updates to pyjade and its successor recently was deleted from pypi, I took the liberty to revive it: https://github.com/kakulukia/pypugjs

Version 5.0.1 has fixed the incompatibility with recent Django versions.
If you still need this patch, please resubmit it to my repo and im happy to include it in the next version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants