public function alert($type, $alert, $dismissable = true)
    {
        $html = '';
        $class = 'alert alert-'.$type;
        if ($dismissable) {
            $class .= ' alert-dismissable';
        }
        $html .= '<div class="'.$class.'" role="alert">';
        if ($dismissable) {
            $html .= '<button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span></button>';
        }
        $html .= $this->addClass($alert, array('h([1-6]){1}' => 'alert-heading', 'a' => 'alert-link'));
        $html .= '</div>';

        return $html;
    }