Your template code is wrong.
Move ``def with (komplet)`` to the first line of your template, and
put the dollar sign ``$`` before it.
$def with (komplet)
<html>
<head>
....
This should solve it.
Btw, it's perfectly legal to move the string you've assigned into
another template. Then you say:
komplet = render.komplet()
render.index(komplet)
On Sun, Apr 18, 2010 at 6:49 PM, vlatko <[email protected]> wrote:
> Why i cant solve this problem.
>
> this is main :
>
> render = web.template.render('template/')
>
> class index:
> def GET(self):
> komplet = "<html><head><title>test</title></head> \
> <body><p>test</p> \
> </body></html>"
> return render.index(komplet)
>
>
> this is template file:
>
> <html>
> <head>
> <title></title>
> <meta http-equiv="Content-Type" content="text/html;
> charset=UTF-8">
> </head>
> <body>
> def with (komplet):
> I just wanted to say <em>hello</em>
> <em>Hello $komplet</em>, world!
> </body>
> </html>
>
> Why is saying takes no arguments ??
>
> --
> 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.
>
>
--
Branko Vukelić
Check out my blog: http://www.brankovukelic.com/
Check out my portfolio: http://www.flickr.com/photos/foxbunny/
Registered Linux user #438078 (http://counter.li.org/)
--
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.