+1

On Aug 8, 2:56 am, Nathan Weizenbaum <[EMAIL PROTECTED]> wrote:
> Well, there is always the :preserve filter if you need complicated
> whitespace stuff.
>
> I think the syntax for whitespace-less tags will be putting a pipe at
> end of the tag, but before "=" or "~". For example:
>
> %a{:href => "/whatever"}|
>   Stuff
>
> Generates
>
> <a href="/whatever">Stuff</a>
>
> And
>
> %pre= "foo\nbar\nbaz"
>
> Generates
>
> <pre>foo
> bar
> baz</pre>
>
> Sound good to everyone?
>
> - Nathan
>
> jt wrote:
> > This is not only about having a dot after a link: spaces sometimes
> > "mean" something (in HAML for instance!).
> > So what if spaces mean something to the consumer of my HAML generated
> > content?
> > I really need to strip spaces from parts of the generated content: a
> > proper syntax should do the trick.
> > Incidentally, ERb has a similar functionality for blank lines ("-%>"
> > instead of "%>").
>
> > By the way, the {:nospace => "both"} hack is more than dirty: it only
> > works in IE.
>
> > On Jul 25, 10:14 am, Evgeny <[EMAIL PROTECTED]> wrote:
>
> >> It would be extremely confusing to add syntax that handles such edge
> >> cases, and instead of making HTMLsimpler - makes it more complicated.
> >> As well as doing harm to the performance of the interpreter by adding
> >> unnecessary features.
>
> >> Haml does not prevent you from using HTML.
> >> If what you need can be achieved by using HTML, then use HTML.
> >> Just write it ... it the middle of your Haml block:
> >>   <a href="...">follow this link</a>.
>
> >> Having said that - most people really don't care if a dot at the end
> >> of a link is clickable or not. And most entities that come after a
> >> link usually have awhitespacebetween the end of the link and the
> >> entity.
>
> >> On 7/25/07, Vlad Rafeyev <[EMAIL PROTECTED]> wrote:
>
> >>> Coders do see thewhitespaceat the end of the line :) Because they
> >>> now, how can it echo on page layout :)
>
> >>> Maybe you have better proposals? For me its worse to use ruby
> >>> instructions (=) to deal with whitespaces.
>
> >>> Maybe special symbol on the start and on the end of the line? Like
> >>> this:
>
> >>> %p
> >>>   To sign up please
> >>>   _%a{:nospace} follow this link_
> >>>   \.
>
> >>> This can mean that interpreter should cut whitespaces before and after
> >>> A tag.
>
> >>> On Jul 25, 4:45 am, Nathan Weizenbaum <[EMAIL PROTECTED]> wrote:
>
> >>>> I have to agree with Mislav here. It's confusing to have Haml
> >>>> instructions look just like HTML. I also think it's way too confusing to
> >>>> have significantwhitespaceon the end of the line, because for most
> >>>> people it's invisible.
>
> >>>> - Nathan
>
> >>>> Mislav Marohnić wrote:
>
> >>>>> On 7/24/07, *Vlad Rafeyev* <[EMAIL PROTECTED]
> >>>>> <mailto:[EMAIL PROTECTED]>> wrote:
>
> >>>>>     %p
> >>>>>     To sign up please
> >>>>>     %a{:nospace} follow this link
> >>>>>     \.
>
> >>>>> Uhg ... It looks (and feels!) wrong to mix HTML attributes with
> >>>>> internal processing instructions.


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

Reply via email to