public static function getParserByKey($key) {
        switch (strtolower($key)) {
            case "twig":
                return new TwigTemplateParser();
            default:
                if (isset(self::$customParsers[$key]))
                    return self::$customParsers[$key];
                else
                    return new MustacheTemplateParser();
        }
    }
public static function getParserByKey($key) {
        switch (strtolower($key)) {
            case "twig":
                return new TwigTemplateParser();
            default:
                if (isset(self::$customParsers[$key]))
                    return self::$customParsers[$key];
                else
                    return new MustacheTemplateParser();
        }
    }
public static function getParserByKey ( $ key ) { switch ( strtolower ( $ key ) ) { case "twig" : return new TwigTemplateParser ( ) ; default : if ( isset ( self :: $ customParsers [ $ key ] ) ) return self :: $ customParsers [ $ key ] ; else return new MustacheTemplateParser ( ) ; } }
Get a view parser by key.
Get a view parser by key .