Jinja2 vs Pug: What are the differences?
What is Jinja2? Full featured template engine for Python. Jinja2 is a full featured template engine for Python. It has full unicode support, an optional integrated sandboxed execution environment, widely used and BSD licensed.
Jinja2 and Pug can be categorized as "Templating Languages & Extensions" tools.
"It is simple to use" is the top reason why over 4 developers like Jinja2, while over 118 developers mention "Elegant html" as the leading cause for choosing Pug.
Jinja2 and Pug are both open source tools. It seems that Pug with 18.3K GitHub stars and 1.9K forks on GitHub has more adoption than Jinja2 with 6.25K GitHub stars and 1.21K GitHub forks.
According to the StackShare community, Pug has a broader approval, being mentioned in 173 company stacks & 118 developers stacks; compared to Jinja2, which is listed in 20 company stacks and 23 developer stacks.
What is Jinja2?
What is Pug?
Need advice about which tool to choose?Ask the StackShare community!
Sign up to add, upvote and see more prosMake informed product decisions
What are the cons of using Jinja2?
What are the cons of using Pug?
Sign up to get full access to all the companiesMake informed product decisions
Sign up to get full access to all the tool integrationsMake informed product decisions
We use Jade when writing HTML, which is much easier to read and maintain. We compile it to HTML before deploying it though, and don't use Jade's client-side rendering features.
django와 flask에서 html을 다룰때 jinja를 통해 다룹니다. 이것으로 템플릿을 나누어 header, footer를 별도로 관리하며 | 를 사용해 함수를 만들어 데이터를 수정하기도 합니다.
특히 summernote를 이용과 해쉬태그 만들기를 하면서 jinja에 대한 이해가 높아졌습니다.
We use Jade for constructing our modular UI. We also rely on Jade interpolation to pass reactive and static values from our Express server.
front-end 수업 때 들은 jade 입니다. html을 효과적으로 다룰 수 있고로 열고 닫을때 혼돈이 없어 좋아합니다. 현재 프로젝트에 gulp와 함께 붙이려는 계획을 갖고 있지만, 아직 연습이 더 필요하다고 생각됩니다.