PHPackages                             zaitsev/mthamlphp - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. zaitsev/mthamlphp

ActiveLibrary[Templating &amp; Views](/categories/templating)

zaitsev/mthamlphp
=================

HAML for PHP

1.1.1(11y ago)154MITPHPPHP &gt;=5.3.0

Since Mar 12Pushed 11y ago1 watchersCompare

[ Source](https://github.com/Zaitsev/MtHamlPHP)[ Packagist](https://packagist.org/packages/zaitsev/mthamlphp)[ Docs](https://github.com/Zaitsev/MtHamlPHP)[ RSS](/packages/zaitsev-mthamlphp/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (15)Versions (7)Used By (0)

Multi target HAML - IDE compiler (runtime reduced)
==================================================

[](#multi-target-haml---ide-compiler-runtime-reduced)

[![Build Status](https://camo.githubusercontent.com/9e26211eb5507ffbc3125c85896bea81a53b88707255dda22da862fda9c4e671/68747470733a2f2f7472617669732d63692e6f72672f5a6169747365762f4d7448616d6c5048502e737667)](https://travis-ci.org/Zaitsev/MtHamlPHP)

MtHaml is a PHP implementation of the [HAML language](http://haml.info/) which can target multiple languages. This is fork based on MtHaml and MtHaml-more (both runtimes supported if needed) Main target of this fork - implement compiling haml files to php in IDE (to not use any runtime).

### differences

[](#differences)

This implementation based on and supports all features of [MtHaml](https://github.com/arnaud-lb/MtHaml) and adds many new own. But its focused mostly to **compile haml files to plain PHP**, not to be used as template engine.

You can use [grunt task](https://github.com/Zaitsev/grunt-mthamlphp-vlz) and [IDEA plugin](https://github.com/Zaitsev/mthamlphp-idea-plugin) to compile haml to php when editing haml-file in IDE.

### for basic usage read [MtHaml](https://github.com/arnaud-lb/MtHaml) and [MtHaml-more](https://github.com/scil/MtHamlMore) documentation.

[](#for-basic-usage-read-mthaml-and-mthaml-more-documentation)

support IDE highlight
---------------------

[](#support-ide-highlight)

to allow IDE recognize php code in :php section you can use it as

```
:php
