diff --git a/router/route.php b/router/route.php
index d382b9d..65567fa 100644
--- a/router/route.php
+++ b/router/route.php
@@ -9,6 +9,10 @@
$router->get('/', function () {
(new View)->display('/home');
});
+
+$router->get('/helloworld', function () {
+ (new View)->renderHTML('
Hello World!
');
+});
$router->get('/home', [\Wepesi\Controller\indexController::class,'home']);
//
$router->post('/changelang', [indexController::class, 'changeLang'])
diff --git a/src/Core/View.php b/src/Core/View.php
index 64f7ce0..2573d26 100644
--- a/src/Core/View.php
+++ b/src/Core/View.php
@@ -183,6 +183,14 @@ protected function renderLayout(string $view)
}
}
+ /**
+ * render html string text
+ * @param string $html
+ * @return void
+ */
+ public function renderHTML(string $html) {
+ print($html);
+ }
/**
* @param $html
*