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

Use django's escape when using django templates #236

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

quantum5
Copy link

Using pyjade.runtime.escape is fine in most situations, but when dealing with django-specific things, like lazy objects, or safe strings, pyjade.runtime.escape treats them as arbitrary objects, calling str on them.

For safe strings, this means they get escaped again. For lazy objects, it means they get forcefully converted into str even if they are unicode strings.

@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.
I'll be happy to merge this, when you resubmit the PR to my repo.

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.

None yet

2 participants