On Thu, Jan 22, 2009 at 10:49, todd <[email protected]> wrote:
>
> 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...
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), '.'
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---