Vit a écrit : > Hello, > > Could someone share ideas/examples how to use ClearSilver together with > Pylons?
One of the problems with^Mfeatures of clearsilver is that it's a pure push templating system. This means you have to feed it exactly all the data it needs. Pylons is mostly based on Mighty, which is much more a pull templating system. I think the best way to go would be to add an additional (python coded) 'view' layer that implements the Buffet API and uses the pylons c, h, m etc to feed the data to clearsilver's HDF and calls the clearsilver template. That is, instead of having the view and template stuff combined in the 'template' - as with Mighty (or genshi or cheetah etc...), have them in two distinct objects : the (python) View, and the cs template itself. FWIW, this is mostly what I end up doing for Trac plugins to avoid putting too much view logic into the controllers. HTH --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" 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/pylons-discuss -~----------~----~----~----~------~----~------~--~---
