From: Chad Perrin Date: 2008-09-26T05:00:51+09:00 Subject: Re: erb reference anywhere online? --9Ek0hoCL9XbhcSqy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Sep 25, 2008 at 05:14:00AM +0900, Brian Candler wrote: > Kenneth McDonald wrote: > > I have "Ruby for Rails" coming in in a few days, but in the meantime, > > is there a good online ref for erb? I haven't been able to find one. >=20 > http://www.ruby-doc.org/stdlib/libdoc/erb/rdoc/ >=20 > Also, the documentation for erubis (a better, faster implementation of=20 > erb) is pretty good. Since they implement the same base feature set,=20 > this should help you. > http://www.kuwata-lab.com/erubis/users-guide.html >=20 > To be honest, there's nothing much you need to know about erb in Rails. >=20 > <% if foo %> > ... > <% end %> >=20 > <%=3D some_expression %> >=20 > <%=3Dh some_expression_which_needs_html_escaping %> True. What's really needed is some guidelines for getting things done with erb/erubis/etc., rather than documentation, for the most part -- such as how to solve some common problems people might encounter migrating from a PHP way of doing things to an erb way of doing things. Greater visibility of certain documentation matters might be nice, too, like all the default path and custom path definition stuff that goes on when working with an erb implementation. Maybe, some day, I'll get around to writing up some of that stuff myself, but ideally someone else would do it so it'd exist sooner than the apocalypse. --=20 Chad Perrin [ content licensed PDL: http://pdl.apotheon.org ] C. Hoare: "Two ways of constructing software: (1) make it so simple that there are obviously no bugs, (2) make it so complicated that there are no obvious bugs. Making it simple is far more difficult." --9Ek0hoCL9XbhcSqy Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkjb7C4ACgkQ9mn/Pj01uKUrwACfWPlvpoIHyeb3EVn9iv2c8o84 l9gAoPO9d1HoTAasbsbZM/GAd1MoOtN6 =EspL -----END PGP SIGNATURE----- --9Ek0hoCL9XbhcSqy--