Sha256: 788a67f635762faf79cd63b5f3c8417c45018ca12a07fbc8b05deb2714ad62fa

Contents?: true

Size: 733 Bytes

Versions: 1

Compression:

Stored size: 733 Bytes

Contents

--FILE--
<?php
$filter = new MtHaml\Filter\ReST(new Gregwar\RST\Parser());
$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>

{% filter mthaml_rest %}{% line 11 %}{{ header }}
=========

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

* list
{% endfilter %}

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_filter.test