Thanks Kevin, works great.
For those interested, I've added Stan (from Nevow) support for TurboGears.
http://blog.develix.com/archive/2006/01/01/stan-turbogears-continued/
Kevin, I know you are opposed to adding additional templating systems
(although I *could* argue that Stan isn't technically a templating
system, I won't, since it accomplishes the same thing, more or less),
but perhaps we should start a repository for 3rd party add-ons and tools
for TG, or at least a central place where we can link to homepages for
these add-ons.
Regards,
Cliff
Kevin Dangoor wrote:
Hi Cliff,
You need to define the entry point in your setup.py (as listed on that
doc page). Something like:
entry_points="""
[turbogears.view.engine]
stan = yourpackage.yourmodule:StanTemplateClass
""",
Once you've done that, you can run
python setup.py develop
to "install" the egg on your system in development mode. Once you've
done that, TurboGears should spot your plugin.
Kevin
On 12/31/05, Cliff Wells <[EMAIL PROTECTED]> wrote:
Hi,
Following the directions at
http://www.turbogears.org/docs/plugins/template.html, I've created a
Stan engine. I've tested it by calling it directly from my controller,
but I'm a little hazy on the last step, which is getting TG to recognize
my Stan templates automatically. Any suggestions? It isn't clear to me
how the setup.py tells TG about my engine.
Regards,
Cliff
--
Kevin Dangoor
Author of the Zesty News RSS newsreader
email: [EMAIL PROTECTED]
company: http://www.BlazingThings.com
blog: http://www.BlueSkyOnMars.com