"Walter Prins" wrote
Have a look at the Pyjamas project: http://pyjs.org/ It sounds like
what
you want.
I hadn't considered using pyjamas outside a web server environment
but I guess you could since it just creates an html/javascript file.
It
depends on what the OP wants to put in his "we
Have a look at the Pyjamas project: http://pyjs.org/ It sounds like what
you want.
Walter
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
From: Michael bridges
To: ALAN GAULD
Sent: Thursday, 16 June, 2011 1:07:14
Subject: Re: [Tutor] using python to write web page
> your python code includes html.
OK, Now I understand.
> i write the python only code --> web page
> [ do not care i
On Wed, Jun 15, 2011 at 8:46 PM, naheed arafat wrote:
> Or there is any python module to get this job done?
The normal way this sort of thing is handled is that the HTML is in
some form of template, where the tags you are talking about editing
are variables. A common example is a web-based form
naheed arafat wrote:
Got a question in this context. If i would like to edit an html file.
suppose i want to edit the values of href tags or the img tags, what should
i do?
This question is more general than just editing HTML files. The same
question, and answer, applies to editing *any* file
Got a question in this context. If i would like to edit an html file.
suppose i want to edit the values of href tags or the img tags, what should
i do?
should I
1. read the file as string,
2.parse it for the tags,
3.edit the tags
4.and then replace the tags by the editted tags
5.delete the main fil
From: Michael bridges
To: Alan Gauld
Sent: Thursday, 16 June, 2011 0:43:35
Subject: Re: [Tutor] using python to write web page
> i do not want to write html, not in whole or in part, nor in reference.
> just 100% python. not from a server.
The code I showed was 100% Python that crea
"Michael bridges" wrote
i would like to use python to write a web page like
writing an html file that is displayed in a browser
without having to run a server.
OK, So whats the problem?
Python can create html files so if you only want to
create an html file just do it:
content = """
He
cherrypy is what you are looking for
check this site: http://www.chandia.net:8080/
you cn
download the code from here, so you can use it as you want:
NMT-2.6-20110529.tar_.gz
On Wed, June 15, 2011 13:42, Michael bridges wrote:
i would like to
use python to write a web page like writing an ht
Or maybe, you're lokking something like this:
http://wiki.python.org/moin/PythonEditors
On Wed, June 15, 2011 13:42, Michael bridges wrote:
i would like to use python to
write a web page like writing an html file that is displayed in
a browser without having
to run a server.
found a few option
i would like to use python to write a web page like writing an html file that
is displayed in a browser without having to run a server.
found a few options, but need to have server running.
https://skulpt.googlecode.com/hg/skulpt
gives 404 error
___
11 matches
Mail list logo