Since you can still use helpers even in non-rails Haml,it should not be hard to have a helper that just renders Haml partials.
That would be a good way IMHO of going and solving this need, without adding any additional syntax or changing Haml code. On 10/4/07, Nathan Weizenbaum <[EMAIL PROTECTED]> wrote: > > > Feel free to make up a patch (don't forget tests and docs!). It > shouldn't be part of the core syntax, though; a parallel to the render > method that still functions outside of Rails would probably be best. > > - Nathan > > Arnaud M wrote: > > Oh yes I forgot to mention that we are not using Rails. > > > > As I said, since the fragments are also used in the templates of > > static pages, > > rendered during deployment, it make much more sense to integrate the > > inclusion > > mechanism to the templating engine. > > > > IMHO, this function should not be implemented by the web frameworks, > > this belongs to the templating engines, complementing them from > > outside, via > > scope objects and multiple calls is kludgy. > > > > If nothing is planned to support it natively, I will code it myself > > into HAML > > and propose a patch here if anybody is interested. > > > > On Oct 3, 10:03 pm, "Nathan Weizenbaum" <[EMAIL PROTECTED]> wrote: > > > >> For Haml, the idea is that you can make use of Rails' render :partial. > If > >> you're not using Rails, it shouldn't be hard to build your own helper > that > >> accomplishes roughly the same thing. > >> > >> - Nathan > >> > >> On 10/3/07, Arnaud M <[EMAIL PROTECTED]> wrote: > >> > >> > >> > >> > >>> Hello, > >>> > >>> First a big THANX for refreshing the landscape of templating systems ! > >>> > >>> I was fairly surprised to find out that the @importe directive of Sass > >>> is not available in Haml templates, am I missing something ? > >>> > >>> I often feel the need to factor out template fragments (shared by > >>> templates of static and dynamic pages), any plans about this ? > >>> > >>> Thank you, > >>> > >>> Arnaud. > >>> > > > > > > > > > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Haml" 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/haml?hl=en -~----------~----~----~----~------~----~------~--~---
