Questions tagged [pypugjs]

Tag for questions about PyPugJS which is a fork of PyJade sice the name Jade changed to PugJS. This package is used as a Template Engline

PyPugJS is a fork of PyJade sice the name Jade changed to PugJS. This package is used as a Template Engline

Read more about it here

3 questions
4
votes
0 answers

How properly setup Flask + pypugjs + sass?

I am developing some application with Flask and now I've decided to make the whole process easier with use of pypugjs (it is python port of jade template engine for JS) and SASS. Installing and using pypugjs is easy and smooth, but now I do not…
banderlog013
  • 2,207
  • 24
  • 33
1
vote
0 answers

How to get Pyramid renderred array in Javascript of pug template

So I have a Pyramid view @view_config(route_name='myview', renderer='myview.pug') def myview(self): myarray = [1, 2, "abc"] return { 'myarray': myarray, } I want to parse myarray variable into Javascript…
Thong Nguyen
  • 143
  • 3
  • 10
0
votes
1 answer

using pycodejs to parse pug templates with mixin blocks and crete django templates

Is there a way to use pug with Django when the pug templates use mixins that receive arguments? I'm trying to use pypugjs to create django templates from pug templates. e.g: I have a template with the following mixin syntax: +navbar({ navbarBg:…
John
  • 949
  • 1
  • 9
  • 20