# gutenberg/12.1.0/lib/template-canvas.php

Gutenberg, version 12.1.0. 28 lines.

- Page: https://pluginprobe.com/plugins/gutenberg/12.1.0/code/lib/template-canvas.php
- Raw: https://pluginprobe.com/plugins/gutenberg/12.1.0/raw/lib/template-canvas.php
- Modified: 2021-10-27T17:56:28+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/gutenberg/12.1.0/code/lib/template-canvas.php#L10-L20`.

```php
<?php
/**
 * Template canvas file to render the current 'wp_template'.
 *
 * @package gutenberg
 */

/**
 * Get the template HTML.
 * This needs to run before <head> so that blocks can add scripts and styles in wp_head().
 */
$template_html = gutenberg_get_the_template_html();
?><!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
	<meta charset="<?php bloginfo( 'charset' ); ?>" />
	<?php wp_head(); ?>
</head>

<body <?php body_class(); ?>>
<?php wp_body_open(); ?>

<?php echo $template_html; // phpcs:ignore WordPress.Security.EscapeOutput ?>

<?php wp_footer(); ?>
</body>
</html>

```
