I have started to port over some of the Helpers and have hit a wall with partials since Twig dosent allow you to send arrays or call functions it dosent seem possible to have the array of parameters sent through to include_partial. Any ideas?
On Oct 11, 9:42 am, Fabien Potencier <fabien.potenc...@symfony- project.com> wrote: > Henrik Bjornskov wrote: > > Hey people :) > > > I started the sfTwigPlugin on > > githubhttp://github.com/henrikbjorn/sfTwigPlugin/ > > and will be talking about the process etc athttp://henrikbjorn.tumblr.com. > > > At this point the sfTwigView class is almost complete with one little > > change to make, and that is to swap the file system loader with a file > > system array loader (load templates from multiple locations). Then the > > next step will be to make extensions for Twig providing the Helper > > functionality we have in Symfony. > > I have just committed a change to allow to pass an array of directories > to the Twig_Loader_Filesystem constructor. > > > > > Fabien the helpers should they be filters or tags ? > > It depends on the helper. > > Fabien > > > > > On Oct 9, 4:26 pm, Fabien Potencier <fabien.potenc...@symfony- > > project.com> wrote: > >> Annis McKenzie wrote: > >>> Hey all, > >>> as Fabien already offered to help getting the development of a > >>> sfTwigPlugin started, I'd like to ask him: What would be necessary to > >>> develop this kind of a plugin? I don't know where to start, do we have > >>> to write a new view layer class? > >>> Would there be a huge difference with the programming to support sf1.2 > >>> AND 1.3? > >> The view in symfony 1.2 and 1.3 is, as far as I remember, exactly the > >> same. So, the plugin will work with 1.2, 1.3, and 1.4. > > >> If we need to make some simple changes to support Twig more easily in > >> the symfony view system, that's also possible, but only if it does not > >> break BC. That should be done fast as the feature freeze is targeted for > >> the end of next week. > > >> Fabien > > >>> Cheers and thanks! > >>> Daniel --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony developers" 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/symfony-devs?hl=en -~----------~----~----~----~------~----~------~--~---
