So as it states in the subject yes I'm having problems with web.py
apache and templating. I have had code already work so its all set up
web.py has run scripts properly but every time that I try to use
anything using the render class it fails. I have tried adding the
directory "templates" to the apache config file and it still does not
render the page. Here is an example of a script that works in command
prompt (with the if _name_=main) and doesn't work for apache:
##################################################
C:\pythonroot\root\root.py (setup to be the index wsgi script):
import web
render = web.template.render('')
urls = (
'/(.*)', 'index'
)
class index:
def GET(self, name):
return render.temp(name)
application = web.application(urls, globals()).wsgifunc()
#############################################
C:\pythonroot\root\temp.html:
$def with (name)
$if name:
I just wanted to say <em>hello</em> to $name.
$else:
<em>Hello</em>, world!
--
You received this message because you are subscribed to the Google Groups
"web.py" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/webpy?hl=en.