diff --git a/src/codegen.inc.php b/src/codegen.inc.php index 43efa59..31ade4d 100644 --- a/src/codegen.inc.php +++ b/src/codegen.inc.php @@ -128,6 +128,15 @@ function _add_twig_support(\Twig\Environment $twig) return cs_type($type); } )); + $twig->addFilter(new \Twig\TwigFilter('cs_simple_type', + function($type) + { + if($type instanceof \mtgArrType) + return cs_simple_type($type->getValue()); + else + return cs_simple_type($type); + } + )); $twig->addFilter(new \Twig\TwigFilter('cs_type_prefix', function($type) {