Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

convert whole directories using the pyjade command line. #252

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

adisciple50
Copy link

@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
Author

passes all tests packaged in this repo.

@kakulukia
Copy link

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