public function template($name)
    {
        $fullPath = $name . ".phtml";
        $directory = dirname($fullPath);

        $globalDirPath = $this->appPath . "/Templates/" . $directory;
        $fileName = $globalDirPath . "/" . basename($fullPath);

        if (!is_dir($globalDirPath)) {
            // Dir doesn't exist, make it
            mkdir($globalDirPath, 0777, true);
        }

        $contents = array('<!DOCTYPE html>');
        $contents[] = '<html>';
        $contents[] = '    <head>';
        $contents[] = '        <meta charset="utf-8"/>';
        $contents[] = '        <title></title>';
        $contents[] = '        <script type="text/javascript" src=""></script>';
        $contents[] = '        <link rel="stylesheet" type="text/css" href="">';
        $contents[] = '    </head>';
        $contents[] = '    <body>';
        $contents[] = '        <?php $this->content()?>';
        $contents[] = '    </body>';
        $contents[] = '</html>';

        if (file_put_contents($fileName, implode("\n", $contents))) {
            echo Utils::colorize('Create ' . $fileName, 'SUCCESS');

            return true;
        } else {
            echo Utils::colorize('Can\'t create ' . $fileName, 'FAILURE');

            return false;
        }
    }