### ----------------------------------------------------
### -- Cromponent
### -- Licenses: Artistic-2.0
### -- Authors: Fernando Corrêa de Oliveira
### -- File: bin/lib/Head.rakumod
### ----------------------------------------------------
use Cromponent;

class Head does Cromponent {
	has Bool $.htmx = False;

	method RENDER {
		Q:to/END/
		<head>
			<?.htmx>
			<script
				src="https://unpkg.com/htmx.org@2.0.3"
				integrity="sha384-0895/pl2MU10Hqc6jd4RvrthNlDiE9U1tWmX7WRESftEDRosgxNsQG/Ze9YMRzHq"
				crossorigin="anonymous"
			></script>
			</?>
		</head>
		END
	}
}

sub EXPORT() { Head.^exports }


