Skip to content

kramhash/txtify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

transform for browserify to read text file

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published