--FILE--
<?php
$env = new MtHaml\Environment('twig', array('enable_escaper' => false, 'format' => 'html4'));
echo $env->compileString($parts['HAML'], "$file.haml");

--HAML--
!!!
!!! XML
!!! XML utf-8
!!! XML iso-8859-15
!!! Strict
!!! Frameset
--EXPECT--
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<?xml version='1.0' encoding='utf-8' ?>
<?xml version='1.0' encoding='utf-8' ?>
<?xml version='1.0' encoding='iso-8859-15' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">

