List Info

Thread: New HAML feature idea




New HAML feature idea
user name
2007-12-18 18:38:47
Actually, this might already be implemented .. but it's 2:40am and I have this idea ..

Flatten of hashes that come from helpers. And merging them or something.

Like in this example, both hashes are merged into one haml "hash" :


- evgeny

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Haml" group.
To post to this group, send email to hamlgooglegroups.com
To unsubscribe from this group, send email to haml-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---

Re: New HAML feature idea
user name
2007-12-19 03:04:04
Nice idea. The syntax could be different, though, because I don't want to feel like I'm writing invalid Ruby ...

On Dec 19, 2007 1:38 AM, Evgeny < evgeny.zislisgmail.com"> evgeny.zislisgmail.com> wrote:
Actually, this might already be implemented .. but it's 2:40am and I have this idea ..

Flatten of hashes that come from helpers. And merging them or something.

Like in this example, both hashes are merged into one haml "hash" :


- evgeny




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Haml" group.
To post to this group, send email to hamlgooglegroups.com
To unsubscribe from this group, send email to haml-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---

Re: New HAML feature idea
country flaguser name
United States
2007-12-19 03:42:42
Evgeny: Yeah, cool idea. Implemented in trunk. Thanks.

Mislav: Just think of it as passing arguments to a *arg for
a method. 
That's actually how I implemented it, so it's a good
conceptual model.

- Nathan

Mislav Marohnić wrote:
> Nice idea. The syntax could be different, though,
because I don't want 
> to feel like I'm writing invalid Ruby ...
>
> On Dec 19, 2007 1:38 AM, Evgeny < evgeny.zislisgmail.com

> <mailto:evgeny.zislisgmail.com>> wrote:
>
>     Actually, this might already be implemented .. but
it's 2:40am and
>     I have this idea ..
>
>     Flatten of hashes that come from helpers. And
merging them or
>     something.
>
>     Like in this example, both hashes are merged into
one haml "hash" :
>     http://pastie.caboo.se/
130307
>
>
>     - evgeny
>
>
>
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Haml" group.
To post to this group, send email to hamlgooglegroups.com
To unsubscribe from this group, send email to
haml-unsubscribegooglegroups.com
For more options, visit this group at http://grou
ps.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: New HAML feature idea
user name
2007-12-19 04:03:40
I though that it could be used for example in thumbnails.
Like you define a scale for a thumbnail, give it a name like : thumbnail_scale
and then use it all over the place ... in all the haml templates that include thumbnails.

On Dec 19, 2007 11:42 AM, Nathan Weizenbaum < nex342gmail.com">nex342gmail.com> wrote:

Evgeny: Yeah, cool idea. Implemented in trunk. Thanks.

Mislav: Just think of it as passing arguments to a *arg for a method.
That's actually how I implemented it, so it's a good conceptual model.

- Nathan

Mislav Marohnić wrote:
>; Nice idea. The syntax could be different, though, because I don't want
> to feel like I'm writing invalid Ruby ...
>
> On Dec 19, 2007 1:38 AM, Evgeny < evgeny.zislisgmail.com">evgeny.zislisgmail.com
> <mailto: evgeny.zislisgmail.com"> evgeny.zislisgmail.com>> wrote:
>;
>     Actually, this might already be implemented .. but it's 2:40am and
>     I have this idea ..
>
&gt;     Flatten of hashes that come from helpers. And merging them or
>     something.
>
>     Like in this example, both hashes are merged into one haml "hash" :
>     http://pastie.caboo.se/130307
>
>
&gt;     - evgeny
>;
>
>
>
> >




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Haml" group.
To post to this group, send email to hamlgooglegroups.com
To unsubscribe from this group, send email to haml-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---

Re: New HAML feature idea
user name
2007-12-19 04:04:37
Mislav, the { } syntax near the haml element -- it's not ruby, it's haml

On Dec 19, 2007 11:04 AM, Mislav Marohnić < mislav.marohnicgmail.com">mislav.marohnicgmail.com > wrote:
Nice idea. The syntax could be different, though, because I don't want to feel like I'm writing invalid Ruby ...


On Dec 19, 2007 1:38 AM, Evgeny < evgeny.zislisgmail.com" target="_blank"> evgeny.zislisgmail.com> wrote:
Actually, this might already be implemented .. but it's 2:40am and I have this idea ..

Flatten of hashes that come from helpers. And merging them or something.

Like in this example, both hashes are merged into one haml "hash" :


- evgeny







--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Haml" group.
To post to this group, send email to hamlgooglegroups.com
To unsubscribe from this group, send email to haml-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---

Re: New HAML feature idea
user name
2007-12-19 04:05:45
On Dec 19, 2007 11:04 AM, Evgeny < evgeny.zislisgmail.com">evgeny.zislisgmail.com> wrote:
Mislav, the { } syntax near the haml element -- it's not ruby, it's haml

I know, but it was designed to mimic Ruby hashes ... code inside of it is evaluated like in Ruby.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Haml" group.
To post to this group, send email to hamlgooglegroups.com
To unsubscribe from this group, send email to haml-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---

Re: New HAML feature idea
country flaguser name
United States
2007-12-19 04:32:34
If you have a suggestion, I'm all ears, but I think this is
one of those 
situations where we need to sacrifice consistency for the
sake of power. 
And for the sake of not adding even more sorts of tag
syntax.

Mislav Marohnić wrote:
> On Dec 19, 2007 11:04 AM, Evgeny <evgeny.zislisgmail.com

> <mailto:evgeny.zislisgmail.com>> wrote:
>
>     Mislav, the { } syntax near the haml element --
it's not ruby,
>     it's haml 
>
>
> I know, but it was designed to mimic Ruby hashes ...
code inside of it 
> is evaluated like in Ruby.
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Haml" group.
To post to this group, send email to hamlgooglegroups.com
To unsubscribe from this group, send email to
haml-unsubscribegooglegroups.com
For more options, visit this group at http://grou
ps.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: New HAML feature idea
user name
2007-12-19 05:12:52
I like it.  Could there be an exception/warning for double-definition of key/value pairs?

- Jeff

On 12/19/07, Nathan Weizenbaum < nex342gmail.com"> nex342gmail.com> wrote:

If you have a suggestion, I'm all ears, but I think this is one of those
situations where we need to sacrifice consistency for the sake of power.
And for the sake of not adding even more sorts of tag syntax.

Mislav Marohniæ wrote:
>; On Dec 19, 2007 11:04 AM, Evgeny < evgeny.zislisgmail.com"> evgeny.zislisgmail.com
> <mailto: evgeny.zislisgmail.com">evgeny.zislisgmail.com>> wrote:
>;
; &nbsp;  Mislav, the { } syntax near the haml element -- it's not ruby,
>; &nbsp; &nbsp; it's haml
>
>
> I know, but it was designed to mimic Ruby hashes ... code inside of it
> is evaluated like in Ruby.
>
> >

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Haml" group.
To post to this group, send email to hamlgooglegroups.com
To unsubscribe from this group, send email to haml-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---

Re: New HAML feature idea
user name
2007-12-19 05:20:01
Later ones should overwrite previous values silently.

On Dec 19, 2007 12:12 PM, Jeff Casimir < jeffcasimircreative.com">jeffcasimircreative.com&gt; wrote:
I like it.  Could there be an exception/warning for double-definition of key/value pairs?

- Jeff


On 12/19/07, Nathan Weizenbaum < nex342gmail.com" target="_blank"> nex342gmail.com> wrote:

If you have a suggestion, I'm all ears, but I think this is one of those
situations where we need to sacrifice consistency for the sake of power.
And for the sake of not adding even more sorts of tag syntax.

Mislav Marohnić wrote:
>; On Dec 19, 2007 11:04 AM, Evgeny < evgeny.zislisgmail.com" target="_blank"> evgeny.zislisgmail.com
> <mailto: evgeny.zislisgmail.com" target="_blank">evgeny.zislisgmail.com>> wrote:
>;
; &nbsp;  Mislav, the { } syntax near the haml element -- it's not ruby,
&gt; &nbsp; &nbsp; it's haml
>
>
> I know, but it was designed to mimic Ruby hashes ... code inside of it
> is evaluated like in Ruby.
>
> >




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Haml" group.
To post to this group, send email to hamlgooglegroups.com
To unsubscribe from this group, send email to haml-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---

Re: New HAML feature idea
country flaguser name
United States
2007-12-19 05:42:39
This is the current implementation. I'm inclined to keep it
this way, 
because I think there are a lot of situations in which it
would be 
useful to have one hash override another, and I think the
ordering makes 
the precedence pretty explicit.

Mislav Marohnić wrote:
> Later ones should overwrite previous values silently.
>
> On Dec 19, 2007 12:12 PM, Jeff Casimir <jeffcasimircreative.com 
> <mailto:jeffcasimircreative.com>> wrote:
>
>     I like it.  Could there be an exception/warning
for
>     double-definition of key/value pairs?
>
>     - Jeff
>
>
>     On 12/19/07, * Nathan Weizenbaum* < nex342gmail.com
>     <mailto:nex342gmail.com>> wrote:
>
>
>         If you have a suggestion, I'm all ears, but I
think this is
>         one of those
>         situations where we need to sacrifice
consistency for the sake
>         of power.
>         And for the sake of not adding even more sorts
of tag syntax.
>
>         Mislav Marohnić wrote:
>         > On Dec 19, 2007 11:04 AM, Evgeny <
evgeny.zislisgmail.com
>         <mailto:evgeny.zislisgmail.com>
>         > <mailto:evgeny.zislisgmail.com
>         <mailto:evgeny.zislisgmail.com>>>
wrote:
>         >
>         >     Mislav, the { } syntax near the haml
element -- it's not
>         ruby,
>         >     it's haml 
>         >
>         >
>         > I know, but it was designed to mimic Ruby
hashes ... code
>         inside of it
>         > is evaluated like in Ruby.
>         >
>         > >
>
>
>
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Haml" group.
To post to this group, send email to hamlgooglegroups.com
To unsubscribe from this group, send email to
haml-unsubscribegooglegroups.com
For more options, visit this group at http://grou
ps.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---


[1-10]

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