#1027: TurboDjango template
-------------------------+--------------------------------------------------
Reporter: fredlin | Owner: anonymous
Type: enhancement | Status: new
Priority: normal | Milestone:
Component: CherryPy | Version: 0.9a6
Severity: normal | Keywords: django template
-------------------------+--------------------------------------------------
Lots of people use Django template for Pyhton webframework(As Django
project shares).
And if we want to make people feel comfortable to try TurboGears (and then
migrate to tg hopefully), first thing we can do is make django template
system available on TurboGears.
controller.py
{{{
@expose(template = "django:dem.templates.djpage")
def page(self):
return dict(name="TurboGears")
}}}
djpage.tmpl
{{{
<h1>Hello, {{name}}</h1>
}}}
surf http://localhost:8080/page you'll see
{{{
Hello, TurboGears
}}}
djpage is django template name, the template has "tmpl" file suffix
--
Ticket URL: <http://trac.turbogears.org/turbogears/ticket/1027>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears Tickets" 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/turbogears-tickets
-~----------~----~----~----~------~----~------~--~---