I want to be able to make SPI's, which can be developed with easy imaginary code, like below.
I am fed up with writing event handlers / functions / closures / etc etc etc. Make it like this... Please.
template "BorderLayout.html"
loadView "customerHeader.html" into "North";
loadView "customerDetails.html" into "Centre";
loadModel "/rest/customer/"+param.customer+"/name" into "North"
loadModel "/rest/customer/"+param.customer into "Centre"
waitForEvent;
if Event = "EditCustomer" then forwardTo "editCustomer.bas";
if Event = "ShowOrders" then
loadView "orders.html" into "Overlay"
loadModel "/rest/customer/orders" into "Overlay"
waitForEvent;
clearView Overlay;
endif;
end;
0
u/tonywestonuk Jul 19 '16
I want to be able to make SPI's, which can be developed with easy imaginary code, like below.
I am fed up with writing event handlers / functions / closures / etc etc etc. Make it like this... Please.