Questions tagged [pyjade]

Jade syntax adapter for Django, Jinja2 and Mako templates

PyJade is a high performance template preprocessor, that converts any .jade source to the each Template-language (Django, Jinja2 or Mako).

35 questions
0
votes
1 answer

Loop with counter

I'm trying to do the age-old gallery loop counter using jade (I'm a newb). I'm using twitter bootstrap so I need to put the images into divs with col-md-3 as a class and as a child of a div with row". So, ideally it looks like this:
Scott
  • 3,204
  • 3
  • 31
  • 41
0
votes
1 answer

Pyramid with mako and pyjade

Let's say, that I have a template written in mako: base.mako. I would like to use it as a renderer in a view named: base_view. Also I have a template written in mako named: concrete.mako, which inherits from base.mako this way: <%inherit…
0
votes
1 answer

Use PyJade on Command-Line Like Jade

I'm developing on an old operating system that can't run a perquisite version of Node.js for using Jade. However, I think it can install pyjade. Can I use pyjade on the command line to convert files the same way I can use jade? If so, how?
Chris Redford
  • 16,982
  • 21
  • 89
  • 109
0
votes
1 answer

Jade templates django - Use captured url value in urls.py

I have "static" javascript templates I want to serve with my Django application. Usually you put them in the static folder and that's it. The problem here is the templates aren't really static, they are jade(pyjade) templates that need to be…
olanod
  • 30,306
  • 7
  • 46
  • 75
0
votes
1 answer

TemplateNotFound in Django project using pyjade?

I have a layout.jade file that contains just a basic skeleton: html head body header block content footer In the same directory, I also have a mypage.jade file that contains extends layout block content p Hello World Rendering…
neptune
  • 1,380
  • 2
  • 17
  • 25
1 2
3