### ----------------------------------------------------
### -- HTML::Component
### -- Licenses: Artistic-2.0
### -- Authors: Fernando Corrêa
### -- File: lib/HTML/Component/Tag/HTML.rakumod
### ----------------------------------------------------
use HTML::Component::Tag::Node;
use HTML::Component::Tag::Methods::HTML;

unit class HTML::Component::Tag::HTML does HTML::Component::Tag::Node does HTML::Component::Tag::Methods::HTML;

has Bool $.doctype = True;

::?CLASS.^find_method("HTML").wrap: my method (|) {
  join "\n", |('<!DOCTYPE html>' if $!doctype), callsame
}


