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.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ha...@googlegroups.com
The answer may surprise you!!
%p This text <b>is in bold letters</b>.
Same for links. If you want to dynamically generate links, you have 2 options:
%p== This text #{link_to('is linked', home_path)}.
Or:
%p
This text
= link_to("is linked", home_path), '.'
FiXato
unread,
Jan 22, 2009, 5:46:04 AM1/22/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ha...@googlegroups.com
> 2009/1/22 todd <foxt...@gmail.com>: >> >> 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...
> 2009/1/22 FiXato <fix...@gmail.com>: > You could do: [..snip...]
>
> >> 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...
> > 2009/1/22 FiXato <fix...@gmail.com>:
> > You could do:
> [..snip...]
> > As you can see, several options ;)
>