Skip to content

Browserify plugin to convert haml-coffee templates into Javascript.

License

Notifications You must be signed in to change notification settings

th3hunt/haml-coffee-browserify

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Browserify plugin to convert haml-coffee (.hamlc) templates to Javascript.

Installation

This package is available on npm as:

npm install haml-coffee-browserify

Usage

$ browserify -t haml-coffee-browserify foo.hamlc > bundle.js

Configuration

You can configure the Hamlc compiler through package.json, under a haml-coffee-browserify key. Check out Hamlc Compiler Options and Custom Helper Function Options for more info

For example:

  "haml-coffee-browserify": {
    "compilerOptions": {
      "customHtmlEscape": "window.HAML.escape",
      "customPreserve": "window.HAML.preserve",
      "customCleanValue": "window.HAML.cleanValue",
      "customSurround": "window.HAML.surround",
      "customSucceed": "window.HAML.succeed",
      "customPrecede": "window.HAML.precede",
      "customReference": "window.HAML.reference",
      "context": "window.HAML.context"
    }
  }

License

MIT

Acknowledgments

Based on the hamlify project by Paul Taylor.

About

Browserify plugin to convert haml-coffee templates into Javascript.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%