Skip to main content

+mode

Mixin mode is a way to quickly write code as a draft without following strict rules and later finish it properly.

Mode has to be set before (each) component because it's applied only for the following component.

Default mode is strict and it doesn't need to be declared (because it's default).

+mode('draft')

+component('button')

...

If you set a mode draft then:

Warning: many important functions cannot be used without the register section, so using the draft mode has its limitations.

We also use the mode draft as the default mode in many examples on this site for having those code examples more simple.