There is no way to transform an ERB generator into a Haml generator. On Thu, Jul 8, 2010 at 4:47 PM, millisami <[email protected]> wrote:
> So, what option do I've to make it work for haml? > Any pointers to make this work? > > On Jul 9, 4:36 am, Nathan Weizenbaum <[email protected]> wrote: > > Yes, that's a generator file. It's ERB that generates ERB. You can > convert > > the ERB output, but you can't convert the double-ERB template itself. > > > > Haml can't generate Haml, because Haml generates HTML. Usually Haml > > generators are written in ERB. > > > > On Thu, Jul 8, 2010 at 4:28 PM, millisami <[email protected]> wrote: > > > Actually this is the file > > > > >http://github.com/plataformatec/simple_form/blob/master/lib/generator. > .. > > > of the plugin. > > > > > So, I think for haml, it has to haml to generate haml?? > > > > > Can we generate haml from haml like the erb generating erb as above? > > > > > On Jul 9, 1:33 am, Nathan Weizenbaum <[email protected]> wrote: > > > > That's a double-ERB file: ERB that generates ERB. That doesn't make > any > > > > sense to feed to html2haml, since you don't want to be using Haml to > > > > generate ERB. > > > > > > On Thu, Jul 8, 2010 at 12:35 PM, millisami <[email protected]> > wrote: > > > > > The following is the _form.html.erb template of simple_form plugin. > > > > > > >http://pastie.org/1036459 > > > > > > > The generated/converted .haml version is incorrect. What would be > the > > > > > correct haml for that file? > > > > > > > -- > > > > > 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]<haml%[email protected]> > <haml%[email protected]<haml%[email protected]> > >< > > > haml%[email protected]<haml%[email protected]> > <haml%[email protected]<haml%[email protected]> > > > > > >. > > > > > For more options, visit this group at > > > > >http://groups.google.com/group/haml?hl=en. > > > > > -- > > > 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]<haml%[email protected]>< > haml%[email protected]<haml%[email protected]> > >. > > > For more options, visit this group at > > >http://groups.google.com/group/haml?hl=en. > > > > > > -- > 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] <haml%[email protected]>. > For more options, visit this group at > http://groups.google.com/group/haml?hl=en. > > -- 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.
