Em Terça 13 Junho 2006 02:01, Patrick Maupin escreveu:
> I am working on yet another templating system (yeah, I know, but the
> ratio of web frameworks to templating systems has just gotten too
> high).  Its primary focus is not really the web, although it would be

If it was high, it would be awesome.  The problem is that it is too low... ;-)  
Too many templating systems for (not too many) web frameworks. ;-)  (Yeah, 
engineers are boring people when they talk about mathematics...)

> nice to make it "just work" on the web, as well.

:-)


I believe that it will be much more productive if you take a look at TurboKid 
and TurboCheetah.  Both are available and required on a standard installation 
of TurboGears 0.9.x.

There you'll see how it was done in the core for two templating systems and 
you'll be able to compare to what you need.


> Additional questions:
>
> 7. In the setup.py entry point section it shows "schemename =
> yourpackage.yourmodule:YourPluginClass".  I would assume that it should
> really be "yourschemename" as well, but I hate making those kinds of
> assumptions.

I am in doubt here.  But remember that these are entrypoints so I believe the 
variable name is really "schemaname".

> 8. There is scant discussion on caching templates.  Should they always
> be cached?  How are stale templates flushed out of the cache?  I was
> under the impression from something I read earlier that changing a
> template would cause TurboGears to reload, but I don't see anything in
> the interface for this.

I also believe that this is your task.  Checking if the template changed and 
reloading it, I mean.  You might count on the mtime of the file, for example, 
or do some complex MD5 rehashing every once and a while...


> Thanks in advance for any light you can shed on these issues.

I am sorry for not being able to help with direct answers.  I just took a look 
at the templating system a while ago, but I haven't gone too far with my own 
studies.

-- 
Jorge Godoy      <[EMAIL PROTECTED]>


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to