diff --git a/bin/index.php b/bin/index.php new file mode 100644 index 0000000..ee4da66 --- /dev/null +++ b/bin/index.php @@ -0,0 +1,9 @@ +createElement("h1", "Hello World!"); + } + + private function description() + { + return $this->createElement( + "p", + $this->loadTextFile("en_description") + ); + } + + public function run(array $options = []) : bool + { + $this->appendChild($this->header()); + $this->appendChild($this->description()); + return true; + } + + public function onWebsocketRequest( + \Lewp\Websocket\Message $message + ) : \Lewp\Websocket\Message { + } +}; diff --git a/modules/header-description/resources/text/en/description.txt b/modules/header-description/resources/text/en/description.txt new file mode 100644 index 0000000..9169b25 --- /dev/null +++ b/modules/header-description/resources/text/en/description.txt @@ -0,0 +1,4 @@ +This is your starting point for another lewp module. + +The following table shows the options that are passed to the module when it gets +called as well as the module configuration. diff --git a/modules/hello-world b/modules/hello-world new file mode 160000 index 0000000..04d4455 --- /dev/null +++ b/modules/hello-world @@ -0,0 +1 @@ +Subproject commit 04d445534f512e413623b8bb9a751a196e5264d9 diff --git a/pages/home.php b/pages/home.php new file mode 100644 index 0000000..1bf551e --- /dev/null +++ b/pages/home.php @@ -0,0 +1,10 @@ +addModule("header-description"); + $this->addModule("hello-world", $options); + return true; + } +};