Jump to: navigation, search

Howto:Persistent Nasal configuration

287 bytes added, 12 January
no edit summary
Create a file for your settings, save it as [[$FG_HOME]]/Nasal/rgatc.config
 We will be using a Nasal hash, that is treated as JSON- this has a number of advantages, i.e. you don't need to write a parser for a custom configuration format, and your configuration can even include comments and arbitrary Nasal values, including even functions or objects
<syntaxhighlight lang="nasal">
# you can also add comments
width: 100,
length : 200,
scale: 10,
range: 25,less_than: func(a,b) {return a<b;},

Navigation menu