Modules

-- WebDSL definitions --

WebDSL provides a simple module system for organizing definitions. Every file that declares components of an application declares a module name, as well as any modules that it imports:

    module org/webdsl/example

    imports org/webdsl/anothermodule
    imports org/webdsl/yetanothermodule

Modules are divided into different sections, grouping page and entity definitions:

    module org/webdsl/example

    section An example section

    entity Foo {
      baz : String
    }