How to use PyPugJs from Python without a Framework?
See original GitHub issue- pypugjs version: 5.8.1
- Django version: –
- Python version: 3.3.7
- Operating System: MacOs 10.14.4
Description
I don’t want to install Jinja2 etc. Can i Just use PyPugJS -> HTML with variables interpolation?
What I Did
...
html=f.read()
pageTitle = 'TTTTTTTTT'
print(pypugjs.ext.html.process_pugjs (html ))
expected output:
<title>TTTTTTTTT</title>
but i got:
<title>None</title>
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Program web applications in python without a framework?
Try writing your own version of mod_php "from scratch" and see all the things PHP is doing for you automagically. The point of...
Read more >pypugjs · PyPI
PyPugJS is a high performance port of PugJS for python, that converts any .pug ... Any templates with other extensions will not be...
Read more >Day 25 - A Python Web App without a Framework - YouTube
Day 25 - A Python Web App without a Framework In 30 Days of Python, ... What you can do with Python is...
Read more >Building a barebone Web API service in Python without a web ...
A barebone web API service, powered by gunicorn, that uses query paramenters to modify an in-memory data. CAVEAT: The application may sometimes ...
Read more >Python pug to html, Pypugjs, Jinja2 tutorial PDF, Django pug ...
The core of the library consists of just a few lines of Python, using pypugjs to parse Pug templates, optionally including stylesheets from...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I put it there so that the 3rd person could copy paste it 😉
It is possible