attr_if()
        
      
      
  
    Pass in an attribute name and value. If the value is not falsey, we’ll display the attribute with appropriate value when necessary.
Params:
- 
          
attr {string}The attribute name
 - 
          
value {string | boolean} = noneThe value of the attribute. “True” or “true” (string or boolean) will output the attribute without any value, while falsey values will not output any attribute.