Sha256: 1ef2d9dd2df78ca54e2dd71994106a08d91361f6872e0999f0d1becb6ecc33d1

Contents?: true

Size: 774 Bytes

Versions: 1

Compression:

Stored size: 774 Bytes

Contents

--FILE--
<?php
$filter = new MtHaml\Filter\ReST(new Gregwar\RST\Parser(), true);
$env = new MtHaml\Environment('twig', array('enable_escaper' => false), array('rest' => $filter));
echo $env->compileString($parts['HAML'], "$file.haml");

--HAML--
:rest
 Hello world
 ===========

 What is it?
 ----------
 This is a **RST** document!

 * list
:rest
 #{header}
 =========

 What is it?
 ----------
 This is a **RST** document!

 * list
--EXPECT--
<a id="title.1"></a><h1>Hello world</h1>
<a id="title.1.1"></a><h2>What is it?</h2>
<p>This is a <strong>RST</strong> document!</p>
<ul><li>list</li>
</ul>

<a id="title.2"></a><h1>{% line 11 %}{{ header }}</h1>
<a id="title.2.1"></a><h2>What is it?</h2>
<p>This is a <strong>RST</strong> document!</p>
<ul><li>list</li>
</ul>


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
guard-mthaml-0.4.0 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/rest_optimization_filter.test