Namespace and ClassPath rewrites
This commit is contained in:
17
Core/Elements/Style.class.php
Normal file
17
Core/Elements/Style.class.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace Core\Elements;
|
||||
|
||||
class Style extends StaticView {
|
||||
|
||||
private string $style;
|
||||
|
||||
function __construct($style) {
|
||||
$this->style = $style;
|
||||
}
|
||||
|
||||
function getCode(): string {
|
||||
// TODO: do we need to escape the content here?
|
||||
return html_tag("style", [], $this->style, false);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user