Comments (2)
I'm stuck too. even just importing hamlpy I get this error
File "/Users/xx/.pyenv/versions/2.7.18/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
File "/Users/xx/.pyenv/versions/2.7.18/lib/python2.7/site-packages/hamlpy/__init__.py", line 2, in <module>
import templatize
File "/Users/xx/.pyenv/versions/2.7.18/lib/python2.7/site-packages/hamlpy/templatize.py", line 18, in <module>
trans_real.templatize = decorate_templatize(trans_real.templatize)
AttributeError: 'module' object has no attribute 'templatize'
I did the same
Python 2.7.18
Django 1.11
pip install hamlpy
what I'm wrong?
from hamlpy.
what I'm wrong?
This is my old question 4 years ago, to which I have not found an answer. The original repository has not been supported for 10 years. Then I found and made my fork, which worked for me. You can try it out.
I also just looked that there is also activity in the repository from which I made the fork.
from hamlpy.
Related Issues (20)
- %a processing bug HOT 1
- jinja2 macro and call tags closed as blocks HOT 1
- HamlPy cannot run from library.zip HOT 3
- Python3 support for hamlpy HOT 10
- HamlPy comment before else produces incorrect output
- Not found on PyPi
- JS inline comments // don't work
- Reverse HTML to HamlPy compiler
- Can't find templatize HOT 2
- "or" statement does not work as expected in "if" tests
- Django if-else tags common inner content HOT 1
- support for :preserve tag?
- Load / extends html file
- HamlPy linter?
- Can't encode UTF8 characters in shell
- Quoting issues when using inline variable with filter
- Using a "with" statement does not close the tag properly HOT 2
- How to write an attribute starting with the symbol #
- A ReDoS vulnerability exists in nodes.py
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 hamlpy.