Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * Conditional Addition of classes using Ternary Operator
- */
- {% set classes = [
- is_front ? 'front-page', 'internal-page'
- has_parent ? 'child-item',
- attributes.hasClass('test-class') ? 'another-class',
- ] %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement