jo! sometimes obvious solutions are hard to see
thanx!

marze

On Jun 12, 3:02 am, "Simon Baird" <[EMAIL PROTECTED]> wrote:
> Here's my solution for same problem:
>
>     %script{:language=>"JavaScript",:src=>"/script.js"}=""
>
> Ie, If you put the ="" at the end then it will not add the extra line break.
> I use the same thing for css, eg:
>
>     %link{:rel=>"stylesheet",:type=>"text/css",:href=>"/styles.css"}=""
>
> But it's not very pretty. I'm like you -- I couldn't bear those extra line
> breaks in the output.
>
> Simon.
>
> On 6/12/07, Marze <[EMAIL PROTECTED]> wrote:
>
>
>
> > So there's no way to do it?
> > having the empty script tag in other line looks awful to me.. don't
> > you?
>
> > On Jun 11, 1:23 am, Jeffrey Hardy <[EMAIL PROTECTED]> wrote:
> > > s.ross's self-closing trick will work, but, while self-closing script
> > > tags are valid according to the W3C validator (and Safari doesn't
> > > seem to mind them), Firefox has a problem with it. It won't load the
> > > script. So, if you want your script to load in Firefox, you'll have
> > > to go with the empty <script></script> tags.
>
> > > /Jeff
>
> > > On 10-Jun-07, at 6:39 PM, s.ross wrote:
>
> > > > %script{:src => "javascripts/prototype.js", :type => "text/
> > > > avascript"}/
>
> > > > should do it.
>
> > > > On Jun 10, 2007, at 3:30 PM, Marze wrote:
>
> > > >> Hey! is there any way to close inline empty tags, like when you
> > > >> require a javascript library, ex:
>
> > > >> %script{:src => "javascripts/prototype.js", :type => "text/
> > > >> javascript"}
>
> > > >> output this
>
> > > >> <script src="javascripts/prototype.js" type="text/javascript">
> > > >> </script>
>
> > > >> could be like this?
>
> > > >> <script src="javascripts/prototype.js" type="text/javascript"></
> > > >> script>
>
> > > >> thanx!
> > > >> marze
>
> > > > Steve Ross
> > > > [EMAIL PROTECTED]
> > > >http://www.calicowebdev.com
>
> > > --
> > > Jeffrey Hardy
> > (packagethief)http://unspace.cahttp://beginningrails.comhttp://quotedprintable.com


--~--~---------~--~----~------------~-------~--~----~
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