|
List Info
Thread: New HAML feature idea
|
|
| New HAML feature idea |

|
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 haml googlegroups.com To unsubscribe from this group, send email to haml-unsubscribe googlegroups.com For more options, visit this group at http://groups.google.com/group/haml?hl=en -~----------~----~----~----~------~----~------~--~---
|
| Re: New HAML feature idea |

|
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.zis lis gmail.com">
evgeny.zislis gmail.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 haml googlegroups.com To unsubscribe from this group, send email to haml-unsubscribe googlegroups.com For more options, visit this group at http://groups.google.com/group/haml?hl=en -~----------~----~----~----~------~----~------~--~---
|
| Re: New HAML feature idea |
  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.zislis gmail.com
> <mailto:evgeny.zislis gmail.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 haml googlegroups.com
To unsubscribe from this group, send email to
haml-unsubscribe googlegroups.com
For more options, visit this group at http://grou
ps.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---
|
|
| Re: New HAML feature idea |

|
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 < nex342 gmail.com">nex342 gmail.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.zislis gmail.com">evgeny.zislis gmail.com
> <mailto : evgeny.zislis gmail.com">
evgeny.zislis gmail.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 haml googlegroups.com To unsubscribe from this group, send email to haml-unsubscribe googlegroups.com For more options, visit this group at http://groups.google.com/group/haml?hl=en -~----------~----~----~----~------~----~------~--~---
|
| Re: New HAML feature idea |

|
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.mar ohnic gmail.com">mislav.marohnic gmail.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.zis lis gmail.com" target="_blank">
evgeny.zislis gmail.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 haml googlegroups.com To unsubscribe from this group, send email to haml-unsubscribe googlegroups.com For more options, visit this group at http://groups.google.com/group/haml?hl=en -~----------~----~----~----~------~----~------~--~---
|
| Re: New HAML feature idea |

|
2007-12-19 04:05:45 |
|
On Dec 19, 2007 11:04 AM, Evgeny < evgeny.zislis gmail.com">evgeny.zislis gmail.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 haml googlegroups.com To unsubscribe from this group, send email to haml-unsubscribe googlegroups.com For more options, visit this group at http://groups.google.com/group/haml?hl=en -~----------~----~----~----~------~----~------~--~---
|
| Re: New HAML feature idea |
  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.zislis gmail.com
> <mailto:evgeny.zislis gmail.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 haml googlegroups.com
To unsubscribe from this group, send email to
haml-unsubscribe googlegroups.com
For more options, visit this group at http://grou
ps.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---
|
|
| Re: New HAML feature idea |

|
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 < nex342 gmail.com">
nex342 gmail.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.zislis gmail.com">
evgeny.zislis gmail.com > <mailto: evgeny.zislis gmail.com">evgeny.zislis gmail.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 haml googlegroups.com To unsubscribe from this group, send email to haml-unsubscribe googlegroups.com For more options, visit this group at http://groups.google.com/group/haml?hl=en -~----------~----~----~----~------~----~------~--~---
|
| Re: New HAML feature idea |

|
2007-12-19 05:20:01 |
|
Later ones should overwrite previous values silently.
On Dec 19, 2007 12:12 PM, Jeff Casimir < jeff  casimircre ative.com">jeff casimircreative.com> wrote:
I like it. Could there be an exception/warning for double-definition of key/value pairs?
- Jeff
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Haml" group. To post to this group, send email to haml googlegroups.com To unsubscribe from this group, send email to haml-unsubscribe googlegroups.com For more options, visit this group at http://groups.google.com/group/haml?hl=en -~----------~----~----~----~------~----~------~--~---
|
| Re: New HAML feature idea |
  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 <jeff casimircreative.com
> <mailto:jeff casimircreative.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* < nex342 gmail.com
> <mailto:nex342 gmail.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.zislis gmail.com
> <mailto:evgeny.zislis gmail.com>
> > <mailto:evgeny.zislis gmail.com
> <mailto:evgeny.zislis gmail.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 haml googlegroups.com
To unsubscribe from this group, send email to
haml-unsubscribe googlegroups.com
For more options, visit this group at http://grou
ps.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---
|
|
[1-10]
|
|