Skip to content
This repository has been archived by the owner on Oct 23, 2018. It is now read-only.

Compiler commands

dangreen edited this page Jan 3, 2015 · 2 revisions
  • @require pushes required code to front
@require "./library/jquery.js" "./library/underscore.js" 
  • @include inserts included code at @include place
@include "./app/my.js"
  • @use enables one of mods
@use strict
@use asm
@use closure

@use closure wrapping code in closure:

// cola
		
@use closure
		
var app = angular.module('app', []);
		
// js
		
(function(){
    var app = angular.module('app', []);
})(); 

Also you can use multiple closures in one file:

@use closure {
    int a = 123;
}
		
@use closure {
    int a = 321;
}
  • @use client and @use server commands to separate code
  • @import and @export commands to work with CommonJS modules (read more)