diff --git a/.gitignore b/.gitignore index 33b6b1f..bdf9396 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ package-lock.json .vscode/ build/ ops/terraform/secrets.tf +.DS_Store \ No newline at end of file diff --git a/project/assets/php/tagHandler.php b/project/assets/php/tagHandler.php new file mode 100644 index 0000000..39289a1 --- /dev/null +++ b/project/assets/php/tagHandler.php @@ -0,0 +1,50 @@ +
+ */ +class tag { + + private $DOM = "
Please, edit it !
"; + private $attr = array(); + + public function __construct(array $attributes = array(), String $DOMContent= "") { + $this->attr = array_merge($this->attr, $attributes); + $this->DOM = $DOMContent; + } + + private function process() { + return $this->DOM; + } + + public function render() { + return $this->process(); + } +} + + + + + +class loop extends tag { + private function process() { + return "
pokemon
"; + } +} +$tag = new tag(); +$loop = new loop(); +echo $tag->render(); +echo $loop->render(); +?> + + + + + + Page Title + + + + + + + \ No newline at end of file