html - How to make a sentence inside a haml file bold? -


here's code in haml file:

= render :partial => _paragraph,          :locals => {:content =>  "it hot. something's up."} 

how can make last sentence bold?

you can add tags in string, insert them raw text in paragraph partial

= render :partial => _paragraph, :locals => {:content =>  "it's 1 thing notice uptick in appetite if you've been training hard @ gym, or if you're pregnant or pms-ing. <b>but when feel bottomless pit no obvious reason, something's up.</b>"} 

and in _paragraph

= raw content 

Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -