how to write makefile for python?

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

Was this solution helpful to you?

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:

Just Added Q & A:

Find solution

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.