1. create a new ronin app following the quick install instructions on the web site
2. create a new enhancement:
enhancement RoninTemplateEnhancement: ronin.RoninTemplate {
function test() : String {
return "Test"
}
}
3. update Main.gst to extend RoninTemplate and add a call to ${test()} somewhere
In IJ everything verifies and looks good. Run vark server and go to
http://localhost:8080 you get the following error:
An Exception Occurred:
Message: RoninTemplate.gs Errors: No function defined for test. [line:-227 col:15] in line 1: Expected Type: String Line Number: 3 Column: 15 Warnings: The type String is already assignable to String, so coercing is unnecessary.
What am I doing wrong?
Thanks
Chris