A
A
Alexey Kartushin2016-11-09 23:46:28
Django
Alexey Kartushin, 2016-11-09 23:46:28

Using jade with django?

How can jade be used with django?
It is necessary to strain the back as little as possible, and from here the question arose of how much is needed from the back in case the front wanted to use jade.
The situation is such that there is already a self-made cms, which uses html with django templates and the use of jade is a big question, but there is also a bare layout using jade.
How to get out of this situation painlessly?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
sim3x, 2016-11-10
@Alovinglol

You know jade, django template tags, gulp
You write a heatplate in jade and translate everything into html into the directory that the back will tell you

A
AcckiyGerman, 2020-07-30
@AcckiyGerman

Connect https://github.com/kakulukia/pypugjs (6 lines in settings.py) and it will pick up and compile all templates with .pug extension
Or https://github.com/syrusakbary/pyjade - does the same , but this plugin is slightly more popular.
Details in the documentation.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question