@style() directive used for css. The javascript template file is structured to contain multiple divisions of javascript codes which can
be pulled using the @script() template directive.
#script:js1
function hi(){
console.log('hi')
}
#script;
#script:js2
hi();
#script;
@script('index:js1') returns code in js1 above
@script('index:js2') returns code in js2 above
We can also import both js at once
@style('index:js1:js2') returns code in js1 & js2 above
@script() directive. Every rex file must also be located within the
rex directory or subdirectory folders as this is the location the application will start searching for files from. In
situtation where our index.rex.js file is in windows/Rex/js directory for example, then the path can be
resolved by using dots as shown below
@style('js.index:css1:css2')