JSX In rew
JSX is disabled by default, all for performance purposes. To enable it, you can just add a comment with @jsx
anywhere in your file.
coffee
# @jsx
element = <div></div>
JSX with directives
You can use the using
directive to enable JSX and also set a jsx pragma function on the way.
coffee
using JSX, myPragmaFunction
WARNING
If you use the JSX Exec options this will not work.
JSX Pragma with comments
To change the JSX Pragma you can either look at JSX Options or use comments as below:
coffee
# @jsx myCreateElementFunction
element = <div></div>
INFO
Comments use the JSX Exec options to enable/disable jsx pragma.
More about JSX
More about this in the JSX Options