Skip to content
curse cat edited this page Aug 26, 2016 · 9 revisions

Kanan is configurable by the 3 text documents, coalesce.txt, delayed.txt, and disabled.txt. These documents should be in the same directory as kanan.py.

Here is a short description of what each of the documents do.

  • coalesce.txt will coalesce all of the scripts who's filename appears in the document into a single script to be executed automatically. Scripts that are good candidates for being coalesced are simple patches.
  • delayed.txt will delay running all of the scripts who's filename appears in the document until all the non-delayed scripts have been ran.
  • disabled.txt will force kanan to ignore all of the scripts who's filename appears in the document.

disabled.txt will take precedence over the other two, so if a filename appears in disabled.txt it will be disabled regardless if it shows up in coalesce.txt or delayed.txt. The same filename should not be present in both coalesce.txt and delayed.txt otherwise it will be ran twice.

Another way of configuring kanan is by appending .coalesce, .delayed, or .disabled to the end of the filename just before the .js file extension. This causes the script to be treated as if it were included in one of the above configuration documents. Note: this method takes precedence over the configuration files described above.

If a scripts filename doesn't appear in any of the configuration files, it is ran by kanan normally (it is not coalesced, delayed, or disabled).

Clone this wiki locally