Sha256: 94ebc86bbbc1cafbcf5644219945094f1fc155ea5d4cdc15feda9bc499a6e6b7

Contents?: true

Size: 504 Bytes

Versions: 10

Compression:

Stored size: 504 Bytes

Contents

<?php

namespace MtHaml\Target;

use MtHaml\NodeVisitor\TwigRenderer;
use MtHaml\Environment;

class Twig extends TargetAbstract
{
    public function __construct(array $options = array())
    {
        parent::__construct($options + array(
            'midblock_regex' => '/(?:-\s*)?(?:else\b|elseif\b)/A',
        ));
    }

    public function getDefaultRendererFactory()
    {
        return function (Environment $env, array $options) {
            return new TwigRenderer($env);
        };
    }
}

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
guard-mthaml-0.4.0 vendor/mthaml/mthaml/lib/MtHaml/Target/Twig.php
guard-mthaml-0.3.1 vendor/mthaml/mthaml/lib/MtHaml/Target/Twig.php
guard-mthaml-0.3.0 vendor/mthaml/mthaml/lib/MtHaml/Target/Twig.php
guard-mthaml-0.2.5 vendor/mthaml/mthaml/lib/MtHaml/Target/Twig.php
guard-mthaml-0.2.4 vendor/mthaml/mthaml/lib/MtHaml/Target/Twig.php
guard-mthaml-0.2.3 vendor/mthaml/mthaml/lib/MtHaml/Target/Twig.php
guard-mthaml-0.2.2 vendor/mthaml/mthaml/lib/MtHaml/Target/Twig.php
guard-mthaml-0.2.1 vendor/mthaml/mthaml/lib/MtHaml/Target/Twig.php
guard-mthaml-0.2.0 vendor/mthaml/mthaml/lib/MtHaml/Target/Twig.php
guard-mthaml-0.1.0 vendor/mthaml/mthaml/lib/MtHaml/Target/Twig.php