Skip to content

antoinelafontaine/oxide

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Oxide

A Haml theme engine for Drupal.

The engine is based on original work of Kyle Cunningham.
Peroxide project page on github: https://github.com/codeincarnate/peroxide

The goal is now limited to only providing Haml template support to Drupal.

Dependencies

Requires a copy of MtHaml Haml parser to be placed in sites/all/libraries or sites/[domain]/libraries of your Drupal installation.
MtHaml project page on github: https://github.com/arnaud-lb/MtHaml

Usage guidelines

The engine needs to first be placed in the sites/all/themes/engine or the sites/[domain] variant folder.

Then you need to declare that you'll be using oxide as your theme engine in your theme info file.

name = My Oxide based theme
description = An Haml powered theme
package = Core
version = VERSION
core = 7.x

engine = oxide

You're all set to use haml template files for your new theme! Happy theming!

Notes

The engine saves rendered parsed haml files in the sites files folder in order to speed up rendering.

These can be located under _sites/default/files/oxide/[theme name]/

A small drush command - drush oxide-clear-cache (occ) - has been defined for emptying that cache folder whenever you rename or move a template file when developing. You can also safely remove that folder manualy and the engine will recreate it when required.

About

Haml theme engine for Drupal

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published