# Creates a converter and initializes it
# Finally checks for dictionaries
-import pnacl
+import pnacl is example
class Converter
super PnaclApp
# We have to redefine the method to do what we want when receiving a dictionary from JS
- redef fun handle_dictionary(dictionary: PepperDictionary)
- do
+ redef fun handle_dictionary(dictionary) do
# Getting values from the dictionary
var from = dictionary["from"]
var to = dictionary["to"]