Fork me on GitHub
logo

Make web development powerful & efficient

Building methods and application controllers both answer other buildable objects, later printed as HTML sent to the client using elements.
These methods will most of the time answer either a widget or a block.
index [
    
    ^self counter
]
Default controller method of an application answering a counter widget.
index [
    
    ^[:e |
        e 
            h1: 'Counter example';
            build: self counter]
]
This controller method answers a block taking an element as parameter.