Switch To HAML?

I was just wondering if Typo is being completely switched to HAML for
views? Recent changesets seem to indicate this, and I was just
wondering if there were also plans for keeping around an rhtml enabled
theme, or if everything is going to be completely converted at some
point.

Regards,

Sean


Typo-list mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/typo-list

Wow! I hope HAML doesn’t become the de facto templating system in Typo.
I
imagine that the 4.0 release will become the final one that has any wide
adoption if this is true.

On Thursday 01 February 2007 13:45, Steve L. wrote:

Wow! I hope HAML doesn’t become the de facto templating system in Typo. I
imagine that the 4.0 release will become the final one that has any wide
adoption if this is true.

Yeah, I dislike HAML too. If it were up to me and a change had to be
made
(rhtml isn’t so evil, honestly) I’d probably jump to Markaby since it
carries
all the so-called benefits of HAML without creating yet another language
which needs to be learned.

I suppose it should still be possible to drop in Markaby and use it for
whatever templates we want. Rails usually makes that kind of thing
trivial
anyway.

TX

Ah, if I am interpreting this right, the issue is the one mentioned
here:
http://groups.google.com/group/haml/browse_thread/thread/225ea81289cbc3d8/b4e288c5a66f076d?hl=en#b4e288c5a66f076d
which, as the thread says, is fixed in trunk and making its way to
stable.

What I am interested in is if there will be a theme where all the
regular views are actually rhtml (for those that prefer it). Looking
at the typo trunk, the default views are all being completely
converted to haml, and the old rhtml being tossed away.

Having a theme where all the regular views are also rhtml might be
helpful to those who don’t have the time/desire to learn haml.
Similarly, themes for whatever other template languages Typo supports.
Then again, I can also see that as a bit of a pita when making changes
to the views.

Regards,

Sean


Typo-list mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/typo-list

On 1/31/07, Steve L. [email protected] wrote:

Wow! I hope HAML doesn’t become the de facto templating system in Typo. I
imagine that the 4.0 release will become the final one that has any wide
adoption if this is true.

I agree. I think HAML is a dumb idea, because it means you can’t just
edit your templates in a standard XHTML or XML editor.

If typo moves to HAML, I drop typo, unless there’s an HTML-to-HAML
converter. I don’t want to learn another markup language unless
there’s a really, really compelling reason. Making templates take up
less characters is not that reason.

mathew

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Le 12 févr. 07 à 02:20, Kevin B. a écrit :

converter. I don’t want to learn another markup language unless
there’s a really, really compelling reason. Making templates take up
less characters is not that reason.

Why would you have to learn HAML? If we push out a stable Typo that
uses HAML, we’ll make sure themes can still use rhtml, so there
should be no problem here.

What we’re actually going to do is leave one theme with HAML and one
with RHTML.
This way, people who want to use HAML – like I do – will use it, and
people who want to open their template in an HTML editor will bbe
able to do so.

That way, everyone’s going to be happy.


Frédéric de Villamil
[email protected] tel: +33 (0)6 62 19 1337
http://fredericdevillamil.com

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFF0DrNCvkKk5nKviARArfuAKCxbycutMj7XJ6j+XU0ATiealCJcQCeKfcH
O5zbOl1+lhxM2MtfslT3opw=
=7dIx
-----END PGP SIGNATURE-----


Typo-list mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/typo-list

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Le 12 févr. 07 à 11:49, Piers C. a écrit :

Buh? Who edits HTML in an XML editor? Especially since the eRB
uses HAML, we’ll make sure themes can still use rhtml, so there

With the possible exception of the sidebar writers. Can HAML templates
include RHTML templates yet?

According to unspace.ca

“Not only can you use a combination of Haml, RHTML, and RXML
templates interchangeably, but as an added bonus Haml automatically
adjusts rendered output to the proper indentation level — even across
partials!”

Thus I didn’t have a look at how much this works.


Frédéric de Villamil
[email protected] tel: +33 (0)6 62 19 1337
http://fredericdevillamil.com

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFF0EuqCvkKk5nKviARAmEjAJ9GLhvOxc6dU5bN7UsOk3Pn4zs7zwCfd5ry
zqexyjKQC8KjDJJCpaz2geo=
=d56H
-----END PGP SIGNATURE-----

Frederic de Villamil [email protected] writes:

According to unspace.ca

“Not only can you use a combination of Haml, RHTML, and RXML
templates interchangeably, but as an added bonus Haml automatically
adjusts rendered output to the proper indentation level — even across
partials!”

Thus I didn’t have a look at how much this works.

Hmm… so where did I get the idea that HAML and RHTML don’t play well
together. Kevin? Was it in coversation with you or am I just making
things up out of my head?

Frederic de Villamil [email protected] writes:

What we’re actually going to do is leave one theme with HAML and one
with RHTML.
This way, people who want to use HAML – like I do – will use it, and
people who want to open their template in an HTML editor will bbe
able to do so.

That way, everyone’s going to be happy.

With the possible exception of the sidebar writers. Can HAML templates
include RHTML templates yet?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Le 12 févr. 07 à 20:10, mathew a écrit :

Why would you have to learn HAML?

To make the small modifications to themes necessary to implement
OpenID, for starters.

I’ve reverted the HAML changes on the trunk.
Tell me if something nasty occured (don’t count thist strange CSS
stuff that breaks the live preview, I’ll commit the change tonight).

Regards,
Frédéric


Frédéric de Villamil
[email protected] tel: +33 (0)6 62 19 1337
http://fredericdevillamil.com

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFF2pOqCvkKk5nKviARAtRCAJ9jQ9ie324Cd4GzM3eAzZuG7J3pfgCfSp0t
hOEqaYJJqHhyruG4WmyKToc=
=YLa0
-----END PGP SIGNATURE-----

On 2/11/07, Kevin B. [email protected] wrote:

Buh? Who edits HTML in an XML editor? Especially since the eRB escapes
aren’t, to my knowledge, real XML escapes and so I should be able to
construct a valid RHTML file which isn’t valid XML.

There are a ton of people who edit HTML in XML-aware editors so that
they can have syntax coloring and other niceties to make the process
less error prone and painful. Are you telling me you don’t think
anyone editing RHTML uses BBEdit, vim, emacs, …?

Why would you have to learn HAML?

To make the small modifications to themes necessary to implement
OpenID, for starters.

mathew