Comments (3)
If you use the shell utility, now you can specify the include/extend default extension with pyjade [input] -e html
or if output is not null, it will take the extension from output file.
from pyjade.
Doesn't work if the extension of jade template is pug
.
from pyjade.
I looked in the source of compiler.py
and saw those lines:
def format_path(self,path):
has_extension = '.' in os.path.basename(path)
if not has_extension:
path += self.extension
return path
def visitExtends(self,node):
path = self.format_path(node.path)
print path
self.buffer('{%% extends "%s" %%}' % (path))
How come the extends path in jade does not have an extension? Now jade has a new extension name pug
, I think this should be fixed.
I think if the extension option is set, we should use that extension.
Update:
Well, I could remove the extension of the layout file.... Now it works.
from pyjade.
Related Issues (20)
- problem with certain tag attributes HOT 1
- Unicode issue
- pypug? HOT 2
- how to convert .jade file which is in db?
- how to add new line manually HOT 1
- translations are not picked up HOT 1
- Set data/locals for processing
- Incompatibility with Django 1.11 HOT 3
- No support for .pug files? HOT 2
- filter with arguments HOT 1
- Shameless plug for alternate Pug template library
- How to use variables in templatetags? HOT 1
- Django 1.11 can be generated, but cannot be used in the template
- Performance improvement
- Mixin Blocks not supported in Django HOT 11
- Undefined names have the potential to raise NameError at runtime
- Builtin cmp() was removed in Python 3
- What is the future of this project?
- `KeyError: 'elif'` in ext/html
- Not compatible with Python 3.10 (cannot import name 'Mapping' from 'collections') HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyjade.