List Info

Thread: Switch To HAML?




Switch To HAML?
user name
2007-01-26 08:50:49
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
Typo-listrubyforge.org
http:
//rubyforge.org/mailman/listinfo/typo-list

Re: Switch To HAML?
user name
2007-01-31 20:09:56
I'd like to convert everything.

Unfortunately, the way HAML works now it *appears* (I haven't exhaustively tested this, but it seems to be the case) that overriding a view in a theme doesn't work if the theme uses rhtml and the default view is haml. This means that themes would need to be converted to haml to override any views that have already been converted, and since I'd like to convert everything, that means themes have to be haml.

That said, I'd love it if this problem were fixed in an upgrade to Haml, so existing themes would still work.

On Jan 26, 2007, at 9:50 AM, Sean wrote:

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.


-- 
Kevin Ballard
kevinsb.org">kevinsb.org


Re: Switch To HAML?
user name
2007-01-31 20:45:10
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 1/31/07, Kevin Ballard < kevinsb.org">kevinsb.org>; wrote:
I'd like to convert everything.

Unfortunately, the way HAML works now it *appears* (I haven't exhaustively tested this, but it seems to be the case) that overriding a view in a theme doesn't work if the theme uses rhtml and the default view is haml. This means that themes would need to be converted to haml to override any views that have already been converted, and since I'd like to convert everything, that means themes have to be haml.

That said, I'd love it if this problem were fixed in an upgrade to Haml, so existing themes would still work.

On Jan 26, 2007, at 9:50 AM, Sean wrote:

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.


-- ;
Kevin Ballard
kevinsb.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> kevinsb.org



_______________________________________________
Typo-list mailing list
rubyforge.org">Typo-listrubyforge.org
http://rubyforge.org/mailman/listinfo/typo-list



Re: Switch To HAML?
user name
2007-01-31 22:36:38
Well, that's why I want this problem to be fixed ;)

On Jan 31, 2007, at 9:45 PM, Steve Longdo 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.

On 1/31/07, Kevin Ballard < kevinsb.org">kevinsb.org&gt; wrote:
I'd like to convert everything.

Unfortunately, the way HAML works now it *appears* (I haven't exhaustively tested this, but it seems to be the case) that overriding a view in a theme doesn't work if the theme uses rhtml and the default view is haml. This means that themes would need to be converted to haml to override any views that have already been converted, and since I'd like to convert everything, that means themes have to be haml.

That said, I'd love it if this problem were fixed in an upgrade to Haml, so existing themes would still work.

-- 
Kevin Ballard
kevinsb.org">kevinsb.org


Re: Switch To HAML?
user name
2007-02-02 11:55:40
On 1/31/07, Steve Longdo <steve.longdogmail.com> 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
-- 
<URL:http://www.pobox.com/
~meta/>
_______________________________________________
Typo-list mailing list
Typo-listrubyforge.org
http:
//rubyforge.org/mailman/listinfo/typo-list

Re: Switch To HAML?
country flaguser name
United States
2007-02-11 19:20:01
On Feb 2, 2007, at 12:55 PM, mathew wrote:

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.


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.

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.


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.

-- 
Kevin Ballard
kevinsb.org">kevinsb.org


Re: Switch To HAML?
country flaguser name
France
2007-02-12 04:00:44
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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

> On Feb 2, 2007, at 12:55 PM, mathew wrote:
>
>> 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.
>
> 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.
>
>> 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.
>
> 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
fredericde-villamil.com                        tel: +33 (0)6
62 19 1337
http://fredericdevillam
il.com




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

iD8DBQFF0DrNCvkKk5nKviARArfuAKCxbycutMj7XJ6j+XU0ATiealCJcQCe
KfcH
O5zbOl1+lhxM2MtfslT3opw=
=7dIx
-----END PGP SIGNATURE-----
_______________________________________________
Typo-list mailing list
Typo-listrubyforge.org
http:
//rubyforge.org/mailman/listinfo/typo-list
Re: Switch To HAML?
country flaguser name
United Kingdom
2007-02-12 04:49:56
Frederic de Villamil <neuro7el.net> writes:

> Le 12 févr. 07 à 02:20, Kevin Ballard a écrit :
>
>> On Feb 2, 2007, at 12:55 PM, mathew wrote:
>>
>>> 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.
>>
>> 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.
>>
>>> 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.
>>
>> 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.

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

-- 
Piers Cawley <pdcawleybofh.org.uk>
http://www.bofh.org.uk/
_______________________________________________
Typo-list mailing list
Typo-listrubyforge.org
http:
//rubyforge.org/mailman/listinfo/typo-list
Re: Switch To HAML?
country flaguser name
France
2007-02-12 05:12:42
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


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

> Frederic de Villamil <neuro7el.net> writes:
>
>> Le 12 févr. 07 à 02:20, Kevin Ballard a écrit :
>>
>>> On Feb 2, 2007, at 12:55 PM, mathew wrote:
>>>
>>>> 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.
>>>
>>> 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.
>>>
>>>> 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.
>>>
>>> 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.
>
> With the possible exception of the sidebar writers. Can
HAML templates
> include RHTML templates yet?
>

According to http://unspace.ca/dis
cover/haml

"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
fredericde-villamil.com                        tel: +33 (0)6
62 19 1337
http://fredericdevillam
il.com




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

iD8DBQFF0EuqCvkKk5nKviARAmEjAJ9GLhvOxc6dU5bN7UsOk3Pn4zs7zwCf
d5ry
zqexyjKQC8KjDJJCpaz2geo=
=d56H
-----END PGP SIGNATURE-----
_______________________________________________
Typo-list mailing list
Typo-listrubyforge.org
http:
//rubyforge.org/mailman/listinfo/typo-list
Re: Switch To HAML?
country flaguser name
United Kingdom
2007-02-12 07:02:30
Frederic de Villamil <neuro7el.net> writes:
> According to http://unspace.ca/dis
cover/haml
>
> "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?

-- 
Piers Cawley <pdcawleybofh.org.uk>
http://www.bofh.org.uk/
_______________________________________________
Typo-list mailing list
Typo-listrubyforge.org
http:
//rubyforge.org/mailman/listinfo/typo-list
Re: Switch To HAML?
user name
2007-02-12 13:10:28
On 2/11/07, Kevin Ballard <kevinsb.org> 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
-- 
<URL:http://www.pobox.com/
~meta/>
_______________________________________________
Typo-list mailing list
Typo-listrubyforge.org
http:
//rubyforge.org/mailman/listinfo/typo-list

Re: Switch To HAML?
country flaguser name
France
2007-02-20 00:22:33
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


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

> On 2/11/07, Kevin Ballard <kevinsb.org> 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.
>

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
fredericde-villamil.com                        tel: +33 (0)6
62 19 1337
http://fredericdevillam
il.com




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

iD8DBQFF2pOqCvkKk5nKviARAtRCAJ9jQ9ie324Cd4GzM3eAzZuG7J3pfgCf
Sp0t
hOEqaYJJqHhyruG4WmyKToc=
=YLa0
-----END PGP SIGNATURE-----
_______________________________________________
Typo-list mailing list
Typo-listrubyforge.org
http:
//rubyforge.org/mailman/listinfo/typo-list

[1-12]

about | contact  Other archives ( Real Estate discussion Medical topics )