This project is not covered by Drupal’s security advisory policy.

Oxide

Adds haml-support to Drupal and its twig-engine.

The drupal 7 version is inspired on original work of Kyle Cunningham: Peroxide project and on original work of Antoine Lafontaines oxide project

The drupal 8 version is completely rewritten and uses dependency-injection to register the haml parser with the twig-engine.

Dependencies

Requires MtHaml, composer should have installed it automatically. MtHaml project page on github.

Installation via composer

Add the following git-repository to your composer.json:

{
  "type": "git",
  "url": "https://github.com/factorial-io/oxide.git"
}

Then require the module via composer:

composer require "factorial-io/oxide:dev-8.x-1.x"

Enable the module from within drupal or via drush:

drush en oxide -y

Usage guidelines

If you want to use haml in your twig-templates, just add the following line as the first line of your template:

{% haml %}

Then you can use haml instead of html in your template. For more info visit the project page of MtHaml

Example page.tpl.twig

{% haml %}
%div.Page
  %header(role="banner")
    = page.hero
  %div.Preface
    = page.preface
  %main(role="main")
    %a(id="main-content" tabindex="-1")
    %div.Content
      = page.content

  - if page.footer
    %footer(role="contentinfo")
      = page.footer

Drupal 7

We do not support the drupal 7 version of this module, but you can get it from github.

Supporting organizations: 
Development

Project information

  • caution Minimally maintained
    Maintainers monitor issues, but fast responses are not guaranteed.
  • caution Maintenance fixes only
    Considered feature-complete by its maintainers.
  • Created by d34dman on , updated
  • shield alertThis project is not covered by the security advisory policy.
    Use at your own risk! It may have publicly disclosed vulnerabilities.

Releases