0.0.1 • Published 11 years ago

txtify v0.0.1

Weekly downloads
3
License
-
Repository
github
Last release
11 years ago

txtify

Browserify transform to require text file.

install

npm install txtify

Usage

Add txtify transform for grunt-browserify in Gruntfile.js

browserify: {
  compile: {
    options: {
      transform: ['txtify']
    }
  }
}

You can use txtify comment in template file to pickup specified section of text.

<!doctype html>
<html>
  <head></head>
  <body>
    <!-- txtify -->
    contents
    <!-- endtxtify -->
  </body>
</html>

As a result, you get text contents only.

licence

MIT