You could do:
%p
here is some
%b bold text
with
%a{:href => 'http://wheredo.you.want.to.go.today'} a link
and some more text
which would generate:
<p>
here is some
<b>bold text</b>
with
<a href='http://wheredo.you.want.to.go.today'>a link</a>
and some more text
</p>
Or just choose to not use haml for some of the inline things:
%p
here is some <b>bold</b> text with <a
href="http://wheredo.you.want.to.go.today">a link</a> and some more
text
Or you could have a look at the markup filters such as markdown or redcloth.
Or if you use haml within rails, use the rails helpers such as:
%p== here is some #{content_tag(:b, 'bold text')} with #{link_to 'a
link', 'http://wheredo.you.want.to.go.today'} and some more text.
As you can see, several options ;)
2009/1/22 todd <[email protected]>:
>
> Is there a simple way to bold a word in a paragraph, or add a link
> inside a paragraph of text?
>
> I can't seen to work out how...
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---