hiyas.
i had setup Pylons v0.9.7, and create project. and using genshi. and i coding to easy test code , but that code dont working.
code: member.py
coding: utf-8
import logging import foo.model
from foo.lib.base import *
log = logging.getLogger(__name__)
class MemberController(BaseController):
def index(self):
c.title="title"
c.mes="message"
return render('test.html')
code: test.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns:py="http://genshi.edgewall.org/"
lang="ja">
<head>
<title>${c.title}</title>
</head>
<body>
<p>${c.mes}</p>
</body>
</html>
and Error message(on log)
Error - <type 'exceptions.NameError'>: global name 'c' is not defined
Please teach where of this code the problem is. When this English is not unskillfully read easily, I'm sorry. thanks.