SHARE
TWEET

Untitled

a guest Mar 19th, 2019 46 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2.   * Conditional Addition of classes using Ternary Operator
  3.   */
  4.  
  5. {% set classes = [
  6.   is_front ? 'front-page', 'internal-page'
  7.   has_parent ? 'child-item',
  8.   attributes.hasClass('test-class') ? 'another-class',
  9. ] %}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top