conditional-attributes-removes-component-duplication
: Using conditional attributes to avoid duplicating similar components-- ftd.decimal: $rent1 if: { !is-price } -- ftd.decimal: $rent2 if: { is-price }
-- ftd.decimal: value if { is-price }: $rent2 value: $rent1
minimize-container-components
: Avoid using container components with single or no child;; -------- Example 1 -------- -- ftd.column: -- ftd.text: Hello World -- end: ftd.column ;; -------- Example 2 -------- -- ftd.column: color: $inherited.colors.text margin.px: 10 -- ftd.text: Hello World -- end: ftd.column
;; -------- Example 1 -------- -- ftd.text: Hello World ;; -------- Example 2 -------- -- ftd.text: Hello World color: $inherited.colors.text margin.px: 10
Have a question or need help?
Visit our GitHub Q&A discussion to get answers and subscribe to it to stay tuned.
Join our Discord channel and share your thoughts, suggestion, question etc.
Connect with our community!We welcome you to join our Discord community today.
We are trying to create the language for human beings and we do not believe it would be possible without your support. We would love to hear from you.