What is the most PHP-like Python framework that lets me write Python inside HTML, not the other way around?
-
i.e. <html> <body> <? import "navbar.pyp" ?> <? more python code here ?> </body> </html> etc. I really don't want to build a website in Django or some other pre-built framework since as soon as I reach the framework's limits it becomes a pain. I want to program in HTML + Python and nothing else. (Even http://web.py wants me to use its templating engine ...)
-
Answer:
You want a python templating framework. You will probably like http://jinja.pocoo.org/
Jeremy Spencer at Quora Visit the source
Other answers
You could write a tiny shell script using awk/sed/bash etc. to recognize some tokens, run the embedded python code and output the HTML Using CGI this will work great - I did something similar using C++ and it rocked
Vivek Nagarajan
Related Q & A:
- What Will My Baby Look Like Online?Best solution by Yahoo! Answers
- What My Baby Will Look Like?Best solution by Yahoo! Answers
- What are the common usage of python programming language?Best solution by quora.com
- What is the difference between a static method and class method in Python?Best solution by pythoncentral.io
- how to write to java file in the best way?Best solution by Stack Overflow
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.